@vercel/next 3.5.1 → 3.5.2
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 +11 -1
- package/dist/server-build.js +11 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -42435,7 +42435,8 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
42435
42435
|
});
|
42436
42436
|
}
|
42437
42437
|
const pageMatchesApi = (page) => {
|
42438
|
-
return
|
42438
|
+
return (!appPathRoutesManifest?.[page] &&
|
42439
|
+
(page.startsWith('api/') || page === 'api.js'));
|
42439
42440
|
};
|
42440
42441
|
const { i18n } = routesManifest;
|
42441
42442
|
const hasPages404 = routesManifest.pages404;
|
@@ -43051,7 +43052,16 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
43051
43052
|
// to match prerenders so we can route the same when the
|
43052
43053
|
// __rsc__ header is present
|
43053
43054
|
const edgeFunctions = middleware.edgeFunctions;
|
43055
|
+
// allow looking up original route from normalized route
|
43056
|
+
const inverseAppPathManifest = {};
|
43057
|
+
for (const ogRoute of Object.keys(appPathRoutesManifest)) {
|
43058
|
+
inverseAppPathManifest[appPathRoutesManifest[ogRoute]] = ogRoute;
|
43059
|
+
}
|
43054
43060
|
for (let route of Object.values(appPathRoutesManifest)) {
|
43061
|
+
const ogRoute = inverseAppPathManifest[route];
|
43062
|
+
if (ogRoute.endsWith('/route')) {
|
43063
|
+
continue;
|
43064
|
+
}
|
43055
43065
|
route = path_1.default.posix.join('./', route === '/' ? '/index' : route);
|
43056
43066
|
if (lambdas[route]) {
|
43057
43067
|
lambdas[`${route}.rsc`] = lambdas[route];
|
package/dist/server-build.js
CHANGED
@@ -47,7 +47,8 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
47
47
|
});
|
48
48
|
}
|
49
49
|
const pageMatchesApi = (page) => {
|
50
|
-
return
|
50
|
+
return (!appPathRoutesManifest?.[page] &&
|
51
|
+
(page.startsWith('api/') || page === 'api.js'));
|
51
52
|
};
|
52
53
|
const { i18n } = routesManifest;
|
53
54
|
const hasPages404 = routesManifest.pages404;
|
@@ -663,7 +664,16 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
663
664
|
// to match prerenders so we can route the same when the
|
664
665
|
// __rsc__ header is present
|
665
666
|
const edgeFunctions = middleware.edgeFunctions;
|
667
|
+
// allow looking up original route from normalized route
|
668
|
+
const inverseAppPathManifest = {};
|
669
|
+
for (const ogRoute of Object.keys(appPathRoutesManifest)) {
|
670
|
+
inverseAppPathManifest[appPathRoutesManifest[ogRoute]] = ogRoute;
|
671
|
+
}
|
666
672
|
for (let route of Object.values(appPathRoutesManifest)) {
|
673
|
+
const ogRoute = inverseAppPathManifest[route];
|
674
|
+
if (ogRoute.endsWith('/route')) {
|
675
|
+
continue;
|
676
|
+
}
|
667
677
|
route = path_1.default.posix.join('./', route === '/' ? '/index' : route);
|
668
678
|
if (lambdas[route]) {
|
669
679
|
lambdas[`${route}.rsc`] = lambdas[route];
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.5.
|
3
|
+
"version": "3.5.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "b30f000d2ab37bea5ec67c5461bb68d1a007cc3b"
|
75
75
|
}
|