Skip to content

Commit

Permalink
add version to function config manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
ecklf committed Jul 10, 2023
1 parent 4ddb6fc commit ab7370a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1735,9 +1735,17 @@ export default async function build(
}

if (Object.keys(functionsConfigManifest).length > 0) {
const manifest: {
version: number
functions: Record<string, Record<string, string | number>>
} = {
version: 1,
functions: functionsConfigManifest,
}

await fs.writeFile(
path.join(distDir, SERVER_DIRECTORY, FUNCTIONS_CONFIG_MANIFEST),
JSON.stringify(functionsConfigManifest, null, 2)
JSON.stringify(manifest, null, 2)
)
}

Expand Down

0 comments on commit ab7370a

Please sign in to comment.