@vercel/next 3.7.2 → 3.7.4
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 -7
- package/dist/server-build.js +1 -0
- package/dist/utils.js +9 -6
- package/package.json +5 -5
package/dist/index.js
CHANGED
@@ -40867,7 +40867,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
|
|
40867
40867
|
handler: '___next_launcher.cjs',
|
40868
40868
|
runtime: nodeVersion.runtime,
|
40869
40869
|
...lambdaOptions,
|
40870
|
-
operationType: '
|
40870
|
+
operationType: 'Page',
|
40871
40871
|
shouldAddHelpers: false,
|
40872
40872
|
shouldAddSourcemapSupport: false,
|
40873
40873
|
supportsMultiPayloads: !!process.env.NEXT_PRIVATE_MULTI_PAYLOAD,
|
@@ -42989,6 +42989,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
|
|
42989
42989
|
isCorrectMiddlewareOrder,
|
42990
42990
|
prerenderBypassToken: prerenderManifest.bypassToken || '',
|
42991
42991
|
nextVersion,
|
42992
|
+
appPathRoutesManifest: appPathRoutesManifest || {},
|
42992
42993
|
});
|
42993
42994
|
const isNextDataServerResolving = middleware.staticRoutes.length > 0 &&
|
42994
42995
|
semver_1.default.gte(nextVersion, NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION);
|
@@ -44173,7 +44174,7 @@ async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStream
|
|
44173
44174
|
...lambdaOptions,
|
44174
44175
|
...(isStreaming
|
44175
44176
|
? {
|
44176
|
-
|
44177
|
+
supportsResponseStreaming: true,
|
44177
44178
|
}
|
44178
44179
|
: {}),
|
44179
44180
|
files,
|
@@ -45152,7 +45153,7 @@ async function getPrivateOutputs(dir, entries) {
|
|
45152
45153
|
return { files, routes };
|
45153
45154
|
}
|
45154
45155
|
exports.getPrivateOutputs = getPrivateOutputs;
|
45155
|
-
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, }) {
|
45156
|
+
async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, appPathRoutesManifest, }) {
|
45156
45157
|
const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
|
45157
45158
|
const sortedFunctions = [
|
45158
45159
|
...(!middlewareManifest
|
@@ -45269,9 +45270,12 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
|
|
45269
45270
|
}
|
45270
45271
|
else if (shortPath.startsWith('app/') &&
|
45271
45272
|
(shortPath.endsWith('/page') || shortPath.endsWith('/route'))) {
|
45272
|
-
shortPath
|
45273
|
-
|
45274
|
-
|
45273
|
+
const ogRoute = shortPath.replace(/^app\//, '/');
|
45274
|
+
shortPath = (appPathRoutesManifest[ogRoute] ||
|
45275
|
+
shortPath.replace(/(^|\/)(page|route)$/, '')).replace(/^\//, '');
|
45276
|
+
if (!shortPath || shortPath === '/') {
|
45277
|
+
shortPath = 'index';
|
45278
|
+
}
|
45275
45279
|
}
|
45276
45280
|
if (routesManifest?.basePath) {
|
45277
45281
|
shortPath = path_1.default.posix
|
@@ -45437,7 +45441,7 @@ function getOperationType({ group, prerenderManifest, pageFileName, }) {
|
|
45437
45441
|
return 'ISR';
|
45438
45442
|
}
|
45439
45443
|
}
|
45440
|
-
return '
|
45444
|
+
return 'Page'; // aka SSR
|
45441
45445
|
}
|
45442
45446
|
exports.getOperationType = getOperationType;
|
45443
45447
|
function isApiPage(page) {
|
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
@@ -506,7 +506,7 @@ async function createLambdaFromPseudoLayers({ files: baseFiles, layers, isStream
|
|
506
506
|
...lambdaOptions,
|
507
507
|
...(isStreaming
|
508
508
|
? {
|
509
|
-
|
509
|
+
supportsResponseStreaming: true,
|
510
510
|
}
|
511
511
|
: {}),
|
512
512
|
files,
|
@@ -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.4",
|
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": {
|
@@ -45,9 +45,9 @@
|
|
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": "6.
|
48
|
+
"@vercel/build-utils": "6.7.1",
|
49
49
|
"@vercel/nft": "0.22.5",
|
50
|
-
"@vercel/routing-utils": "2.
|
50
|
+
"@vercel/routing-utils": "2.2.0",
|
51
51
|
"async-sema": "3.0.1",
|
52
52
|
"buffer-crc32": "0.2.13",
|
53
53
|
"bytes": "3.1.2",
|
@@ -71,5 +71,5 @@
|
|
71
71
|
"typescript": "4.5.2",
|
72
72
|
"webpack-sources": "3.2.3"
|
73
73
|
},
|
74
|
-
"gitHead": "
|
74
|
+
"gitHead": "925c8ba18ceec80174d9440cd2cad0e725ed4f56"
|
75
75
|
}
|