@vercel/next 4.15.19 → 4.15.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12657,7 +12657,9 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
12657
12657
  });
12658
12658
  }
12659
12659
  let dataFallbackFsRef = null;
12660
- if (!isFallback && !isBlocking && (!isNotFound || static404Page) && dataRoute && (!isAppClientParamParsingEnabled || prefetchDataRoute)) {
12660
+ if (!isFallback && !isBlocking && (!isNotFound || static404Page) && dataRoute && // When this is an App route, either isAppClientParamParsingEnabled is disabled
12661
+ // or there's a prefetchDataRoute
12662
+ (!isAppPathRoute || !isAppClientParamParsingEnabled || prefetchDataRoute)) {
12661
12663
  const basePath = isAppPathRoute && !isOmittedOrNotFound && appDir ? appDir : pagesDir;
12662
12664
  dataFallbackFsRef = new import_build_utils.FileFsRef({
12663
12665
  fsPath: import_path3.default.join(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.19",
3
+ "version": "4.15.20",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",