@vercel/next 3.2.2 → 3.2.3

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.
package/dist/index.js CHANGED
@@ -45414,7 +45414,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
45414
45414
  const route = prerenderManifest.notFoundRoutes[i];
45415
45415
  const isLastRoute = i === prerenderManifest.notFoundRoutes.length - 1;
45416
45416
  if (prerenderManifest.staticRoutes[route]?.initialRevalidate === false) {
45417
- if (currentRouteSrc.length + route.length + 1 >= 4096) {
45417
+ if (currentRouteSrc.length + route.length + 1 >= 4000) {
45418
45418
  pushRoute(currentRouteSrc);
45419
45419
  currentRouteSrc = starterRouteSrc;
45420
45420
  }
@@ -47204,7 +47204,8 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
47204
47204
  }
47205
47205
  // if preview mode/On-Demand ISR can't be leveraged
47206
47206
  // we can output pure static outputs instead of prerenders
47207
- if (!canUsePreviewMode) {
47207
+ if (!canUsePreviewMode ||
47208
+ (routeKey === '/404' && !lambdas[outputPathPage])) {
47208
47209
  htmlFsRef.contentType = _1.htmlContentType;
47209
47210
  prerenders[outputPathPage] = htmlFsRef;
47210
47211
  prerenders[outputPathData] = jsonFsRef;
@@ -565,7 +565,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
565
565
  const route = prerenderManifest.notFoundRoutes[i];
566
566
  const isLastRoute = i === prerenderManifest.notFoundRoutes.length - 1;
567
567
  if (prerenderManifest.staticRoutes[route]?.initialRevalidate === false) {
568
- if (currentRouteSrc.length + route.length + 1 >= 4096) {
568
+ if (currentRouteSrc.length + route.length + 1 >= 4000) {
569
569
  pushRoute(currentRouteSrc);
570
570
  currentRouteSrc = starterRouteSrc;
571
571
  }
package/dist/utils.js CHANGED
@@ -1153,7 +1153,8 @@ const onPrerenderRoute = (prerenderRouteArgs) => (routeKey, { isBlocking, isFall
1153
1153
  }
1154
1154
  // if preview mode/On-Demand ISR can't be leveraged
1155
1155
  // we can output pure static outputs instead of prerenders
1156
- if (!canUsePreviewMode) {
1156
+ if (!canUsePreviewMode ||
1157
+ (routeKey === '/404' && !lambdas[outputPathPage])) {
1157
1158
  htmlFsRef.contentType = _1.htmlContentType;
1158
1159
  prerenders[outputPathPage] = htmlFsRef;
1159
1160
  prerenders[outputPathData] = jsonFsRef;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -44,7 +44,7 @@
44
44
  "@types/semver": "6.0.0",
45
45
  "@types/text-table": "0.2.1",
46
46
  "@types/webpack-sources": "3.2.0",
47
- "@vercel/build-utils": "5.5.3",
47
+ "@vercel/build-utils": "5.5.4",
48
48
  "@vercel/nft": "0.22.1",
49
49
  "@vercel/routing-utils": "2.0.2",
50
50
  "async-sema": "3.0.1",
@@ -69,5 +69,5 @@
69
69
  "typescript": "4.5.2",
70
70
  "webpack-sources": "3.2.3"
71
71
  },
72
- "gitHead": "053c185481b1fa0f980e3f54c9ecbeda53e7d72b"
72
+ "gitHead": "45bd855250436b73bee892c53f0407e1f24bc689"
73
73
  }