@vercel/next 4.3.16 → 4.3.17

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 +12 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11912,22 +11912,20 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
11912
11912
  const route = routesManifest?.dynamicRoutes.find(
11913
11913
  (r) => r.page === pageKey && !("isMiddleware" in r)
11914
11914
  );
11915
+ const isDynamic = isDynamicRoute(routeKey);
11915
11916
  const routeKeys = route?.routeKeys;
11916
11917
  let allowQuery;
11917
11918
  if (isEmptyAllowQueryForPrendered) {
11918
- const isDynamic = isDynamicRoute(routeKey);
11919
- if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback) {
11920
- allowQuery = [];
11921
- } else if (!isDynamic) {
11919
+ if (!isDynamic) {
11922
11920
  allowQuery = [];
11923
11921
  } else if (routeKeys) {
11924
11922
  allowQuery = Object.values(routeKeys);
11925
11923
  }
11926
11924
  } else {
11927
- const isDynamic = isDynamicRoute(pageKey);
11925
+ const isDynamic2 = isDynamicRoute(pageKey);
11928
11926
  if (routeKeys) {
11929
11927
  allowQuery = Object.values(routeKeys);
11930
- } else if (!isDynamic) {
11928
+ } else if (!isDynamic2) {
11931
11929
  allowQuery = [];
11932
11930
  }
11933
11931
  }
@@ -11968,10 +11966,14 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
11968
11966
  };
11969
11967
  }
11970
11968
  }
11969
+ let htmlAllowQuery = allowQuery;
11970
+ if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback) {
11971
+ htmlAllowQuery = [];
11972
+ }
11971
11973
  prerenders[outputPathPage] = new import_build_utils.Prerender({
11972
11974
  expiration: initialRevalidate,
11973
11975
  lambda,
11974
- allowQuery,
11976
+ allowQuery: htmlAllowQuery,
11975
11977
  fallback: htmlFsRef,
11976
11978
  group: prerenderGroup,
11977
11979
  bypassToken: prerenderManifest.bypassToken,
@@ -11999,6 +12001,9 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
11999
12001
  return pathData;
12000
12002
  };
12001
12003
  if (outputPathData || outputPathPrefetchData) {
12004
+ if (htmlAllowQuery !== allowQuery) {
12005
+ prerenderGroup++;
12006
+ }
12002
12007
  const prerender = new import_build_utils.Prerender({
12003
12008
  expiration: initialRevalidate,
12004
12009
  lambda,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.3.16",
3
+ "version": "4.3.17",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",