@vercel/next 4.2.15 → 4.2.16
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 +32 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -14451,7 +14451,7 @@ async function serverBuild({
|
|
14451
14451
|
nextVersion,
|
14452
14452
|
EMPTY_ALLOW_QUERY_FOR_PRERENDERED_VERSION
|
14453
14453
|
);
|
14454
|
-
const hasActionOutputSupport = import_semver3.default.gte(nextVersion, ACTION_OUTPUT_SUPPORT_VERSION) && Boolean(process.env.NEXT_EXPERIMENTAL_STREAMING_ACTIONS);
|
14454
|
+
const hasActionOutputSupport = import_semver3.default.gte(nextVersion, ACTION_OUTPUT_SUPPORT_VERSION) && Boolean(process.env.NEXT_EXPERIMENTAL_STREAMING_ACTIONS) && !routesManifest.i18n;
|
14455
14455
|
const projectDir = requiredServerFilesManifest.relativeAppDir ? import_path4.default.join(baseDir, requiredServerFilesManifest.relativeAppDir) : requiredServerFilesManifest.appDir || entryPath;
|
14456
14456
|
const inversedAppPathManifest = {};
|
14457
14457
|
if (appPathRoutesManifest) {
|
@@ -15888,6 +15888,19 @@ async function serverBuild({
|
|
15888
15888
|
check: true
|
15889
15889
|
}
|
15890
15890
|
] : [],
|
15891
|
+
// before processing rewrites, remove any special `/index` routes that were added
|
15892
|
+
// as these won't be properly normalized by `afterFilesRewrites` / `dynamicRoutes`
|
15893
|
+
...appPathRoutesManifest ? [
|
15894
|
+
{
|
15895
|
+
src: import_path4.default.posix.join(
|
15896
|
+
"/",
|
15897
|
+
entryDirectory,
|
15898
|
+
"/index(\\.action|\\.rsc)"
|
15899
|
+
),
|
15900
|
+
dest: import_path4.default.posix.join("/", entryDirectory),
|
15901
|
+
continue: true
|
15902
|
+
}
|
15903
|
+
] : [],
|
15891
15904
|
// These need to come before handle: miss or else they are grouped
|
15892
15905
|
// with that routing section
|
15893
15906
|
...afterFilesRewrites,
|
@@ -15918,10 +15931,28 @@ async function serverBuild({
|
|
15918
15931
|
),
|
15919
15932
|
check: true
|
15920
15933
|
},
|
15934
|
+
{
|
15935
|
+
src: import_path4.default.posix.join(
|
15936
|
+
"/",
|
15937
|
+
entryDirectory,
|
15938
|
+
"(.+)/\\.prefetch\\.rsc$"
|
15939
|
+
),
|
15940
|
+
dest: import_path4.default.posix.join(
|
15941
|
+
"/",
|
15942
|
+
entryDirectory,
|
15943
|
+
`$1${RSC_PREFETCH_SUFFIX}`
|
15944
|
+
),
|
15945
|
+
check: true
|
15946
|
+
},
|
15921
15947
|
{
|
15922
15948
|
src: import_path4.default.posix.join("/", entryDirectory, "/\\.rsc$"),
|
15923
15949
|
dest: import_path4.default.posix.join("/", entryDirectory, `/index.rsc`),
|
15924
15950
|
check: true
|
15951
|
+
},
|
15952
|
+
{
|
15953
|
+
src: import_path4.default.posix.join("/", entryDirectory, "(.+)/\\.rsc$"),
|
15954
|
+
dest: import_path4.default.posix.join("/", entryDirectory, "$1.rsc"),
|
15955
|
+
check: true
|
15925
15956
|
}
|
15926
15957
|
] : [],
|
15927
15958
|
{ handle: "resource" },
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "4.2.
|
3
|
+
"version": "4.2.16",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"dist"
|
14
14
|
],
|
15
15
|
"dependencies": {
|
16
|
-
"@vercel/nft": "0.27.
|
16
|
+
"@vercel/nft": "0.27.2"
|
17
17
|
},
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/aws-lambda": "8.10.19",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@types/semver": "6.0.0",
|
31
31
|
"@types/text-table": "0.2.1",
|
32
32
|
"@types/webpack-sources": "3.2.0",
|
33
|
-
"@vercel/build-utils": "8.2.
|
33
|
+
"@vercel/build-utils": "8.2.2",
|
34
34
|
"@vercel/routing-utils": "3.1.0",
|
35
35
|
"async-sema": "3.0.1",
|
36
36
|
"buffer-crc32": "0.2.13",
|