@vercel/next 3.2.4 → 3.2.5
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 +24 -1
- package/dist/server-build.js +24 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -45510,7 +45510,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
45510
45510
|
if (lambdas[route]) {
|
45511
45511
|
lambdas[`${route}.rsc`] = lambdas[route];
|
45512
45512
|
}
|
45513
|
-
|
45513
|
+
if (edgeFunctions[route]) {
|
45514
45514
|
edgeFunctions[`${route}.rsc`] = edgeFunctions[route];
|
45515
45515
|
}
|
45516
45516
|
}
|
@@ -45709,6 +45709,17 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
45709
45709
|
...(!isCorrectMiddlewareOrder ? middleware.staticRoutes : []),
|
45710
45710
|
...(appDir
|
45711
45711
|
? [
|
45712
|
+
{
|
45713
|
+
src: `^${path_1.default.posix.join('/', entryDirectory, '/')}`,
|
45714
|
+
has: [
|
45715
|
+
{
|
45716
|
+
type: 'header',
|
45717
|
+
key: '__rsc__',
|
45718
|
+
},
|
45719
|
+
],
|
45720
|
+
dest: path_1.default.posix.join('/', entryDirectory, '/index.rsc'),
|
45721
|
+
check: true,
|
45722
|
+
},
|
45712
45723
|
{
|
45713
45724
|
src: `^${path_1.default.posix.join('/', entryDirectory, '/(.*)$')}`,
|
45714
45725
|
has: [
|
@@ -45877,6 +45888,18 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
45877
45888
|
continue: true,
|
45878
45889
|
important: true,
|
45879
45890
|
},
|
45891
|
+
...(appDir
|
45892
|
+
? [
|
45893
|
+
{
|
45894
|
+
src: path_1.default.posix.join('/', entryDirectory, '/(.*).rsc$'),
|
45895
|
+
headers: {
|
45896
|
+
'content-type': 'application/octet-stream',
|
45897
|
+
},
|
45898
|
+
continue: true,
|
45899
|
+
important: true,
|
45900
|
+
},
|
45901
|
+
]
|
45902
|
+
: []),
|
45880
45903
|
// TODO: remove below workaround when `/` is allowed to be output
|
45881
45904
|
// different than `/index`
|
45882
45905
|
{
|
package/dist/server-build.js
CHANGED
@@ -661,7 +661,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
661
661
|
if (lambdas[route]) {
|
662
662
|
lambdas[`${route}.rsc`] = lambdas[route];
|
663
663
|
}
|
664
|
-
|
664
|
+
if (edgeFunctions[route]) {
|
665
665
|
edgeFunctions[`${route}.rsc`] = edgeFunctions[route];
|
666
666
|
}
|
667
667
|
}
|
@@ -860,6 +860,17 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
860
860
|
...(!isCorrectMiddlewareOrder ? middleware.staticRoutes : []),
|
861
861
|
...(appDir
|
862
862
|
? [
|
863
|
+
{
|
864
|
+
src: `^${path_1.default.posix.join('/', entryDirectory, '/')}`,
|
865
|
+
has: [
|
866
|
+
{
|
867
|
+
type: 'header',
|
868
|
+
key: '__rsc__',
|
869
|
+
},
|
870
|
+
],
|
871
|
+
dest: path_1.default.posix.join('/', entryDirectory, '/index.rsc'),
|
872
|
+
check: true,
|
873
|
+
},
|
863
874
|
{
|
864
875
|
src: `^${path_1.default.posix.join('/', entryDirectory, '/(.*)$')}`,
|
865
876
|
has: [
|
@@ -1028,6 +1039,18 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
1028
1039
|
continue: true,
|
1029
1040
|
important: true,
|
1030
1041
|
},
|
1042
|
+
...(appDir
|
1043
|
+
? [
|
1044
|
+
{
|
1045
|
+
src: path_1.default.posix.join('/', entryDirectory, '/(.*).rsc$'),
|
1046
|
+
headers: {
|
1047
|
+
'content-type': 'application/octet-stream',
|
1048
|
+
},
|
1049
|
+
continue: true,
|
1050
|
+
important: true,
|
1051
|
+
},
|
1052
|
+
]
|
1053
|
+
: []),
|
1031
1054
|
// TODO: remove below workaround when `/` is allowed to be output
|
1032
1055
|
// different than `/index`
|
1033
1056
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.5",
|
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.
|
47
|
+
"@vercel/build-utils": "5.5.5",
|
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": "
|
72
|
+
"gitHead": "40f38948a04d83a9e260ddd455685d74e3eb9209"
|
73
73
|
}
|