Skip to content

Commit

Permalink
optional include manifest based on flag
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 10, 2025
1 parent 06c53bf commit 64914df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2505,9 +2505,11 @@ export default async function build(
path.relative(distDir, pagesManifestPath),
BUILD_MANIFEST,
PRERENDER_MANIFEST,
RESPONSE_CONFIG_MANIFEST,
path.join(SERVER_DIRECTORY, MIDDLEWARE_MANIFEST),
path.join(SERVER_DIRECTORY, MIDDLEWARE_BUILD_MANIFEST + '.js'),
...(config.experimental.streamingMetadata
? [RESPONSE_CONFIG_MANIFEST]
: []),
...(!process.env.TURBOPACK
? [
path.join(
Expand Down

0 comments on commit 64914df

Please sign in to comment.