@vercel/next 3.3.8 → 3.3.9
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 +3 -3
- package/dist/server-build.js +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -42725,7 +42725,7 @@ async function getServerlessPages(params) {
|
|
42725
42725
|
}
|
42726
42726
|
// Edge Functions do not consider as Serverless Functions
|
42727
42727
|
for (const edgeFunctionFile of Object.keys(middlewareManifest?.functions ?? {})) {
|
42728
|
-
const edgePath = edgeFunctionFile.slice(1) + '.js';
|
42728
|
+
const edgePath = (edgeFunctionFile.slice(1) || 'index') + '.js';
|
42729
42729
|
delete normalizedAppPaths[edgePath];
|
42730
42730
|
delete pages[edgePath];
|
42731
42731
|
}
|
@@ -43754,12 +43754,12 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
43754
43754
|
const completeDynamicRoutes = [];
|
43755
43755
|
if (appDir) {
|
43756
43756
|
for (const route of dynamicRoutes) {
|
43757
|
-
completeDynamicRoutes.push(route);
|
43758
43757
|
completeDynamicRoutes.push({
|
43759
43758
|
...route,
|
43760
|
-
src: route.src.replace(new RegExp((0, escape_string_regexp_1.default)('(?:/)?$')), '(?:\\.rsc)
|
43759
|
+
src: route.src.replace(new RegExp((0, escape_string_regexp_1.default)('(?:/)?$')), '(?:\\.rsc)(?:/)?$'),
|
43761
43760
|
dest: route.dest?.replace(/($|\?)/, '.rsc$1'),
|
43762
43761
|
});
|
43762
|
+
completeDynamicRoutes.push(route);
|
43763
43763
|
}
|
43764
43764
|
}
|
43765
43765
|
else {
|
package/dist/server-build.js
CHANGED
@@ -667,12 +667,12 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
667
667
|
const completeDynamicRoutes = [];
|
668
668
|
if (appDir) {
|
669
669
|
for (const route of dynamicRoutes) {
|
670
|
-
completeDynamicRoutes.push(route);
|
671
670
|
completeDynamicRoutes.push({
|
672
671
|
...route,
|
673
|
-
src: route.src.replace(new RegExp((0, escape_string_regexp_1.default)('(?:/)?$')), '(?:\\.rsc)
|
672
|
+
src: route.src.replace(new RegExp((0, escape_string_regexp_1.default)('(?:/)?$')), '(?:\\.rsc)(?:/)?$'),
|
674
673
|
dest: route.dest?.replace(/($|\?)/, '.rsc$1'),
|
675
674
|
});
|
675
|
+
completeDynamicRoutes.push(route);
|
676
676
|
}
|
677
677
|
}
|
678
678
|
else {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.3.
|
3
|
+
"version": "3.3.9",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@types/semver": "6.0.0",
|
46
46
|
"@types/text-table": "0.2.1",
|
47
47
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "5.7.
|
48
|
+
"@vercel/build-utils": "5.7.5",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
50
|
"@vercel/routing-utils": "2.1.3",
|
51
51
|
"async-sema": "3.0.1",
|
@@ -70,5 +70,5 @@
|
|
70
70
|
"typescript": "4.5.2",
|
71
71
|
"webpack-sources": "3.2.3"
|
72
72
|
},
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "4c3bc0532216f21f354623ada76b2315ef8ba519"
|
74
74
|
}
|