Fix manifest with experimental flag (#11192)

This ensures we don't attempt the manifests filtering behavior with this
experimental flag enabled as it is incompatible with it as we don't know
what to filter by at this point.
This commit is contained in:
JJ Kasper
2024-02-23 01:02:17 -08:00
committed by GitHub
parent 0d112c848a
commit c2d99855ea
2 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"@vercel/next": patch
---
Fix manifest with experimental flag

View File

@@ -270,10 +270,11 @@ export async function serverBuild({
nextVersion,
CORRECT_MIDDLEWARE_ORDER_VERSION
);
const isCorrectManifests = semver.gte(
nextVersion,
CORRECTED_MANIFESTS_VERSION
);
// experimental bundling prevents filtering manifests
// as we don't know what to filter by at this stage
const isCorrectManifests =
!experimentalAllowBundling &&
semver.gte(nextVersion, CORRECTED_MANIFESTS_VERSION);
let hasStatic500 = !!staticPages[path.posix.join(entryDirectory, '500')];