@vercel/next 4.15.41 → 4.15.42
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 +5 -11
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11207,7 +11207,7 @@ function extractInterceptionRouteInformation(path6) {
|
|
|
11207
11207
|
}
|
|
11208
11208
|
return { interceptingRoute, interceptedRoute };
|
|
11209
11209
|
}
|
|
11210
|
-
var TEST_DYNAMIC_ROUTE = /\/\[[
|
|
11210
|
+
var TEST_DYNAMIC_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
|
|
11211
11211
|
function isDynamicRoute(route, nextVersion) {
|
|
11212
11212
|
const coerced = nextVersion ? import_semver.default.coerce(nextVersion) : null;
|
|
11213
11213
|
if (coerced && import_semver.default.gte(coerced, "16.0.0", {
|
|
@@ -12839,7 +12839,6 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12839
12839
|
headers: { "x-matched-path": paths.pathname }
|
|
12840
12840
|
};
|
|
12841
12841
|
}
|
|
12842
|
-
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12843
12842
|
let htmlAllowQuery = allowQuery;
|
|
12844
12843
|
if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && // TODO(NAR-402): Investigate omitted routes
|
|
12845
12844
|
(isFallback || isBlocking)) {
|
|
@@ -12851,9 +12850,10 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12851
12850
|
) {
|
|
12852
12851
|
htmlAllowQuery = fallbackRootParams;
|
|
12853
12852
|
} else if (postponedPrerender) {
|
|
12854
|
-
htmlAllowQuery =
|
|
12853
|
+
htmlAllowQuery = [];
|
|
12855
12854
|
}
|
|
12856
12855
|
}
|
|
12856
|
+
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12857
12857
|
const staticMetadataFile = getSourceFileRefOfStaticMetadata(
|
|
12858
12858
|
routeKey,
|
|
12859
12859
|
appPathnameFilesMap
|
|
@@ -16856,14 +16856,8 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16856
16856
|
const omittedPrerenderRoutes = new Set(
|
|
16857
16857
|
Object.keys(prerenderManifest.omittedRoutes)
|
|
16858
16858
|
);
|
|
16859
|
-
const hasIsr404Page = typeof prerenderManifest.staticRoutes[routesManifest?.i18n ? (
|
|
16860
|
-
|
|
16861
|
-
import_path6.default.join("/", routesManifest?.i18n.defaultLocale, "/404")
|
|
16862
|
-
) : "/404"]?.initialRevalidate === "number";
|
|
16863
|
-
const hasIsr500Page = typeof prerenderManifest.staticRoutes[routesManifest?.i18n ? (
|
|
16864
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
|
|
16865
|
-
import_path6.default.join("/", routesManifest?.i18n.defaultLocale, "/500")
|
|
16866
|
-
) : "/500"]?.initialRevalidate === "number";
|
|
16859
|
+
const hasIsr404Page = typeof prerenderManifest.staticRoutes[routesManifest?.i18n ? import_path6.default.join("/", routesManifest?.i18n.defaultLocale, "/404") : "/404"]?.initialRevalidate === "number";
|
|
16860
|
+
const hasIsr500Page = typeof prerenderManifest.staticRoutes[routesManifest?.i18n ? import_path6.default.join("/", routesManifest?.i18n.defaultLocale, "/500") : "/500"]?.initialRevalidate === "number";
|
|
16867
16861
|
const wildcardConfig = routesManifest?.i18n?.domains && routesManifest.i18n.domains.length > 0 ? routesManifest.i18n.domains.map((item) => {
|
|
16868
16862
|
return {
|
|
16869
16863
|
domain: item.domain,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.42",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test-listen": "1.1.0",
|
|
54
54
|
"text-table": "0.2.0",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/build-utils": "13.
|
|
56
|
+
"@vercel/build-utils": "13.7.0",
|
|
57
57
|
"@vercel/routing-utils": "6.0.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|