@vercel/next 4.15.8 → 4.15.10
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 +10 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -918,6 +918,9 @@ var require_superstatic = __commonJS({
|
|
|
918
918
|
headers: { Location: loc },
|
|
919
919
|
status
|
|
920
920
|
};
|
|
921
|
+
if (typeof r.env !== "undefined") {
|
|
922
|
+
route.env = r.env;
|
|
923
|
+
}
|
|
921
924
|
if (r.has) {
|
|
922
925
|
route.has = r.has;
|
|
923
926
|
}
|
|
@@ -945,6 +948,9 @@ var require_superstatic = __commonJS({
|
|
|
945
948
|
internalParamNames
|
|
946
949
|
);
|
|
947
950
|
const route = { src, dest, check: true };
|
|
951
|
+
if (typeof r.env !== "undefined") {
|
|
952
|
+
route.env = r.env;
|
|
953
|
+
}
|
|
948
954
|
if (r.has) {
|
|
949
955
|
route.has = r.has;
|
|
950
956
|
}
|
|
@@ -11462,6 +11468,7 @@ async function getDynamicRoutes({
|
|
|
11462
11468
|
if (isAppPPREnabled || isAppClientSegmentCacheEnabled) {
|
|
11463
11469
|
const shouldSkipSuffixes = hasFallbackRootParams || isRoutePPREnabled && isAppClientParamParsingEnabled && !prefetchDataRoute;
|
|
11464
11470
|
routes2.push({
|
|
11471
|
+
...route,
|
|
11465
11472
|
src: route.src.replace(
|
|
11466
11473
|
new RegExp((0, import_escape_string_regexp.default)("(?:/)?$")),
|
|
11467
11474
|
// Now than the upstream issues has been resolved, we can safely
|
|
@@ -12217,9 +12224,11 @@ async function getPageLambdaGroups({
|
|
|
12217
12224
|
),
|
|
12218
12225
|
pageExtensions
|
|
12219
12226
|
});
|
|
12227
|
+
const isAppRouterRoute = sourceFile.endsWith("/route.js") || sourceFile.endsWith("/route.ts");
|
|
12228
|
+
const configRelativePath = isAppRouterRoute ? "../config.json" : "./config.json";
|
|
12220
12229
|
const config2 = JSON.parse(
|
|
12221
12230
|
await import_fs_extra3.default.readFile(
|
|
12222
|
-
import_path3.default.join(entryPath, import_path3.default.dirname(sourceFile),
|
|
12231
|
+
import_path3.default.join(entryPath, import_path3.default.dirname(sourceFile), configRelativePath),
|
|
12223
12232
|
"utf8"
|
|
12224
12233
|
).catch(() => "{}")
|
|
12225
12234
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"test-listen": "1.1.0",
|
|
53
53
|
"text-table": "0.2.0",
|
|
54
54
|
"webpack-sources": "3.2.3",
|
|
55
|
-
"@vercel/build-utils": "13.2.
|
|
56
|
-
"@vercel/routing-utils": "5.3.
|
|
55
|
+
"@vercel/build-utils": "13.2.4",
|
|
56
|
+
"@vercel/routing-utils": "5.3.1"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"build": "node build.mjs",
|