@vercel/next 3.7.3 → 3.7.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 +1452 -759
- package/dist/server-build.js +1 -0
- package/dist/utils.js +8 -5
- package/package.json +5 -15
package/dist/server-build.js
CHANGED
@@ -604,6 +604,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
604
604
|
isCorrectMiddlewareOrder,
|
605
605
|
prerenderBypassToken: prerenderManifest.bypassToken || '',
|
606
606
|
nextVersion,
|
607
|
+
appPathRoutesManifest: appPathRoutesManifest || {},
|
607
608
|
});
|
608
609
|
const isNextDataServerResolving = middleware.staticRoutes.length > 0 &&
|
609
610
|
semver_1.default.gte(nextVersion, NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION);
|
package/dist/utils.js
CHANGED
@@ -1485,7 +1485,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
1485
1485
|
return { files, routes };
|
1486
1486
|
}
|
1487
1487
|
exports.getPrivateOutputs = getPrivateOutputs;
|
1488
|
-
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
1488
|
+
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, appPathRoutesManifest, }) {
|
1489
1489
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
1490
1490
|
const sortedFunctions = [
|
1491
1491
|
...(!middlewareManifest
|
@@ -1602,9 +1602,12 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
|
|
1602
1602
|
}
|
1603
1603
|
else if (shortPath.startsWith('app/') &&
|
1604
1604
|
(shortPath.endsWith('/page') || shortPath.endsWith('/route'))) {
|
1605
|
-
shortPath
|
1606
|
-
|
1607
|
-
|
1605
|
+
const ogRoute = shortPath.replace(/^app\//, '/');
|
1606
|
+
shortPath = (appPathRoutesManifest[ogRoute] ||
|
1607
|
+
shortPath.replace(/(^|\/)(page|route)$/, '')).replace(/^\//, '');
|
1608
|
+
if (!shortPath || shortPath === '/') {
|
1609
|
+
shortPath = 'index';
|
1610
|
+
}
|
1608
1611
|
}
|
1609
1612
|
if (routesManifest?.basePath) {
|
1610
1613
|
shortPath = path_1.default.posix
|
@@ -1770,7 +1773,7 @@ function getOperationType({ group, prerenderManifest, pageFileName, }) {
|
|
1770
1773
|
return 'ISR';
|
1771
1774
|
}
|
1772
1775
|
}
|
1773
|
-
return '
|
1776
|
+
return 'Page'; // aka SSR
|
1774
1777
|
}
|
1775
1778
|
exports.getOperationType = getOperationType;
|
1776
1779
|
function isApiPage(page) {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "3.7.
|
4
|
-
"license": "
|
3
|
+
"version": "3.7.5",
|
4
|
+
"license": "Apache-2.0",
|
5
5
|
"main": "./dist/index",
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
7
7
|
"scripts": {
|
@@ -21,16 +21,6 @@
|
|
21
21
|
"files": [
|
22
22
|
"dist"
|
23
23
|
],
|
24
|
-
"jest": {
|
25
|
-
"preset": "ts-jest/presets/default",
|
26
|
-
"testEnvironment": "node",
|
27
|
-
"globals": {
|
28
|
-
"ts-jest": {
|
29
|
-
"diagnostics": true,
|
30
|
-
"isolatedModules": true
|
31
|
-
}
|
32
|
-
}
|
33
|
-
},
|
34
24
|
"devDependencies": {
|
35
25
|
"@types/aws-lambda": "8.10.19",
|
36
26
|
"@types/buffer-crc32": "0.2.0",
|
@@ -45,9 +35,9 @@
|
|
45
35
|
"@types/semver": "6.0.0",
|
46
36
|
"@types/text-table": "0.2.1",
|
47
37
|
"@types/webpack-sources": "3.2.0",
|
48
|
-
"@vercel/build-utils": "6.7.
|
38
|
+
"@vercel/build-utils": "6.7.1",
|
49
39
|
"@vercel/nft": "0.22.5",
|
50
|
-
"@vercel/routing-utils": "2.
|
40
|
+
"@vercel/routing-utils": "2.2.0",
|
51
41
|
"async-sema": "3.0.1",
|
52
42
|
"buffer-crc32": "0.2.13",
|
53
43
|
"bytes": "3.1.2",
|
@@ -71,5 +61,5 @@
|
|
71
61
|
"typescript": "4.5.2",
|
72
62
|
"webpack-sources": "3.2.3"
|
73
63
|
},
|
74
|
-
"gitHead": "
|
64
|
+
"gitHead": "a63b9d960bec291e152308c30074843aab802c8d"
|
75
65
|
}
|