@vercel/next 4.15.24 → 4.15.26
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/adapter/index.js +8 -7
- package/dist/index.js +14 -1
- package/package.json +4 -4
package/dist/adapter/index.js
CHANGED
|
@@ -2314,9 +2314,9 @@ var require_interop_require_default = __commonJS({
|
|
|
2314
2314
|
}
|
|
2315
2315
|
});
|
|
2316
2316
|
|
|
2317
|
-
// ../../node_modules/.pnpm/next@16.
|
|
2317
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js
|
|
2318
2318
|
var require_modern_browserslist_target = __commonJS({
|
|
2319
|
-
"../../node_modules/.pnpm/next@16.
|
|
2319
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js"(exports2, module2) {
|
|
2320
2320
|
"use strict";
|
|
2321
2321
|
var MODERN_BROWSERSLIST_TARGET = [
|
|
2322
2322
|
"chrome 111",
|
|
@@ -2328,9 +2328,9 @@ var require_modern_browserslist_target = __commonJS({
|
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
|
-
// ../../node_modules/.pnpm/next@16.
|
|
2331
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js
|
|
2332
2332
|
var require_entry_constants = __commonJS({
|
|
2333
|
-
"../../node_modules/.pnpm/next@16.
|
|
2333
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js"(exports2) {
|
|
2334
2334
|
"use strict";
|
|
2335
2335
|
Object.defineProperty(exports2, "__esModule", {
|
|
2336
2336
|
value: true
|
|
@@ -2362,9 +2362,9 @@ var require_entry_constants = __commonJS({
|
|
|
2362
2362
|
}
|
|
2363
2363
|
});
|
|
2364
2364
|
|
|
2365
|
-
// ../../node_modules/.pnpm/next@16.
|
|
2365
|
+
// ../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js
|
|
2366
2366
|
var require_constants = __commonJS({
|
|
2367
|
-
"../../node_modules/.pnpm/next@16.
|
|
2367
|
+
"../../node_modules/.pnpm/next@16.2.0-canary.29_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js"(exports2, module2) {
|
|
2368
2368
|
"use strict";
|
|
2369
2369
|
Object.defineProperty(exports2, "__esModule", {
|
|
2370
2370
|
value: true
|
|
@@ -2630,7 +2630,7 @@ var require_constants = __commonJS({
|
|
|
2630
2630
|
var SERVER_FILES_MANIFEST = "required-server-files";
|
|
2631
2631
|
var DEV_CLIENT_PAGES_MANIFEST = "_devPagesManifest.json";
|
|
2632
2632
|
var MIDDLEWARE_MANIFEST = "middleware-manifest.json";
|
|
2633
|
-
var TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = "_clientMiddlewareManifest.
|
|
2633
|
+
var TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = "_clientMiddlewareManifest.js";
|
|
2634
2634
|
var TURBOPACK_CLIENT_BUILD_MANIFEST = "client-build-manifest.json";
|
|
2635
2635
|
var DEV_CLIENT_MIDDLEWARE_MANIFEST = "_devMiddlewareManifest.json";
|
|
2636
2636
|
var REACT_LOADABLE_MANIFEST = "react-loadable-manifest.json";
|
|
@@ -9714,6 +9714,7 @@ var vercelConfig = JSON.parse(process.env.NEXT_ADAPTER_VERCEL_CONFIG || "{}");
|
|
|
9714
9714
|
async function writeDeterministicRoutesManifest(distDir) {
|
|
9715
9715
|
const manifest = require(import_node_path.default.join(distDir, "routes-manifest.json"));
|
|
9716
9716
|
manifest.headers = [];
|
|
9717
|
+
manifest.onMatchHeaders = [];
|
|
9717
9718
|
delete manifest.deploymentId;
|
|
9718
9719
|
const outputManifestPath = import_node_path.default.join(
|
|
9719
9720
|
distDir,
|
package/dist/index.js
CHANGED
|
@@ -14305,6 +14305,7 @@ async function serverBuild({
|
|
|
14305
14305
|
afterFilesRewrites,
|
|
14306
14306
|
fallbackRewrites,
|
|
14307
14307
|
headers,
|
|
14308
|
+
onMatchHeaders,
|
|
14308
14309
|
dataRoutes,
|
|
14309
14310
|
hasIsr404Page,
|
|
14310
14311
|
hasIsr500Page,
|
|
@@ -15109,6 +15110,7 @@ ${JSON.stringify(
|
|
|
15109
15110
|
const manifestData = await import_fs_extra5.default.readJSON(fsPath);
|
|
15110
15111
|
if (manifest === "routes-manifest.json") {
|
|
15111
15112
|
manifestData.headers = [];
|
|
15113
|
+
manifestData.onMatchHeaders = [];
|
|
15112
15114
|
delete manifestData.deploymentId;
|
|
15113
15115
|
} else if (manifest === "server/pages-manifest.json" && !shouldUse404Prerender) {
|
|
15114
15116
|
if (manifestData["/404"] === "pages/404.html") {
|
|
@@ -16307,6 +16309,7 @@ ${JSON.stringify(
|
|
|
16307
16309
|
continue: true,
|
|
16308
16310
|
important: true
|
|
16309
16311
|
},
|
|
16312
|
+
...onMatchHeaders,
|
|
16310
16313
|
{
|
|
16311
16314
|
src: import_path5.default.posix.join("/", entryDirectory, "/index(?:/)?"),
|
|
16312
16315
|
headers: {
|
|
@@ -16714,7 +16717,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16714
16717
|
}
|
|
16715
16718
|
if (
|
|
16716
16719
|
// integration tests expect outputs object
|
|
16717
|
-
!process.env.NEXT_BUILDER_INTEGRATION && process.env.NEXT_ENABLE_ADAPTER && import_semver5.default.gte(nextVersion, MINIMUM_NEXT_ADAPTER_VERSION)
|
|
16720
|
+
!process.env.NEXT_BUILDER_INTEGRATION && process.env.NEXT_ENABLE_ADAPTER === "1" && import_semver5.default.gte(nextVersion, MINIMUM_NEXT_ADAPTER_VERSION)
|
|
16718
16721
|
) {
|
|
16719
16722
|
env.NEXT_ADAPTER_PATH = import_path6.default.join(__dirname, "adapter/index.js");
|
|
16720
16723
|
env.NEXT_ADAPTER_VERCEL_CONFIG = JSON.stringify(config);
|
|
@@ -16853,6 +16856,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16853
16856
|
}
|
|
16854
16857
|
);
|
|
16855
16858
|
const headers = [];
|
|
16859
|
+
const onMatchHeaders = [];
|
|
16856
16860
|
const beforeFilesRewrites = [];
|
|
16857
16861
|
const afterFilesRewrites = [];
|
|
16858
16862
|
const fallbackRewrites = [];
|
|
@@ -16917,6 +16921,9 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16917
16921
|
if (routesManifest.headers) {
|
|
16918
16922
|
headers.push(...(0, import_superstatic.convertHeaders)(routesManifest.headers));
|
|
16919
16923
|
}
|
|
16924
|
+
if (routesManifest.onMatchHeaders) {
|
|
16925
|
+
onMatchHeaders.push(...(0, import_superstatic.convertHeaders)(routesManifest.onMatchHeaders));
|
|
16926
|
+
}
|
|
16920
16927
|
if (import_semver5.default.gte(nextVersion, REDIRECTS_NO_STATIC_NEXT_VERSION)) {
|
|
16921
16928
|
redirects.forEach(
|
|
16922
16929
|
(r, i) => updateRouteSrc(r, i, routesManifest.redirects)
|
|
@@ -16945,6 +16952,9 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16945
16952
|
headers.forEach(
|
|
16946
16953
|
(r, i) => updateRouteSrc(r, i, routesManifest.headers || [])
|
|
16947
16954
|
);
|
|
16955
|
+
onMatchHeaders.forEach(
|
|
16956
|
+
(r, i) => updateRouteSrc(r, i, routesManifest.onMatchHeaders || [])
|
|
16957
|
+
);
|
|
16948
16958
|
}
|
|
16949
16959
|
if (routesManifest.basePath && routesManifest.basePath !== "/") {
|
|
16950
16960
|
const nextBasePath = routesManifest.basePath;
|
|
@@ -17172,6 +17182,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17172
17182
|
continue: true,
|
|
17173
17183
|
important: true
|
|
17174
17184
|
},
|
|
17185
|
+
...onMatchHeaders,
|
|
17175
17186
|
// error handling
|
|
17176
17187
|
...output[import_path6.default.posix.join("./", entryDirectory, "404")] || output[import_path6.default.posix.join("./", entryDirectory, "404/index")] ? [
|
|
17177
17188
|
{ handle: "error" },
|
|
@@ -17479,6 +17490,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17479
17490
|
isCorrectLocaleAPIRoutes,
|
|
17480
17491
|
pagesDir,
|
|
17481
17492
|
headers,
|
|
17493
|
+
onMatchHeaders,
|
|
17482
17494
|
beforeFilesRewrites,
|
|
17483
17495
|
afterFilesRewrites,
|
|
17484
17496
|
fallbackRewrites,
|
|
@@ -18475,6 +18487,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
18475
18487
|
continue: true,
|
|
18476
18488
|
important: true
|
|
18477
18489
|
},
|
|
18490
|
+
...onMatchHeaders,
|
|
18478
18491
|
// error handling
|
|
18479
18492
|
...isLegacy ? [] : [
|
|
18480
18493
|
// Custom Next.js 404 page
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.26",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@vercel/nft": "1.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.5",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"test-listen": "1.1.0",
|
|
54
54
|
"text-table": "0.2.0",
|
|
55
55
|
"webpack-sources": "3.2.3",
|
|
56
|
-
"@vercel/
|
|
57
|
-
"@vercel/
|
|
56
|
+
"@vercel/routing-utils": "5.3.2",
|
|
57
|
+
"@vercel/build-utils": "13.3.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "node build.mjs",
|