@vercel/next 31.0.0 → 31.0.1-snapshot-f10b9946b10d
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 +40 -10
- package/dist/bin/proxy-linux-amd64 +0 -0
- package/package.json +4 -4
package/dist/adapter/index.js
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
28
|
+
// ../../node_modules/.pnpm/@swc+helpers@0.5.24/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
29
29
|
var require_interop_require_default = __commonJS({
|
|
30
|
-
"../../node_modules/.pnpm/@swc+helpers@0.5.
|
|
30
|
+
"../../node_modules/.pnpm/@swc+helpers@0.5.24/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports2) {
|
|
31
31
|
"use strict";
|
|
32
32
|
function _interop_require_default(obj) {
|
|
33
33
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -36,9 +36,9 @@ var require_interop_require_default = __commonJS({
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
// ../../node_modules/.pnpm/next@16.5.0-canary.
|
|
39
|
+
// ../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js
|
|
40
40
|
var require_modern_browserslist_target = __commonJS({
|
|
41
|
-
"../../node_modules/.pnpm/next@16.5.0-canary.
|
|
41
|
+
"../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_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) {
|
|
42
42
|
"use strict";
|
|
43
43
|
var MODERN_BROWSERSLIST_TARGET = [
|
|
44
44
|
"chrome 111",
|
|
@@ -50,9 +50,9 @@ var require_modern_browserslist_target = __commonJS({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// ../../node_modules/.pnpm/next@16.5.0-canary.
|
|
53
|
+
// ../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js
|
|
54
54
|
var require_entry_constants = __commonJS({
|
|
55
|
-
"../../node_modules/.pnpm/next@16.5.0-canary.
|
|
55
|
+
"../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/entry-constants.js"(exports2) {
|
|
56
56
|
"use strict";
|
|
57
57
|
Object.defineProperty(exports2, "__esModule", {
|
|
58
58
|
value: true
|
|
@@ -84,9 +84,9 @@ var require_entry_constants = __commonJS({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
// ../../node_modules/.pnpm/next@16.5.0-canary.
|
|
87
|
+
// ../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js
|
|
88
88
|
var require_constants = __commonJS({
|
|
89
|
-
"../../node_modules/.pnpm/next@16.5.0-canary.
|
|
89
|
+
"../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/dist/shared/lib/constants.js"(exports2, module2) {
|
|
90
90
|
"use strict";
|
|
91
91
|
Object.defineProperty(exports2, "__esModule", {
|
|
92
92
|
value: true
|
|
@@ -377,6 +377,8 @@ var require_constants = __commonJS({
|
|
|
377
377
|
"next.config.ts",
|
|
378
378
|
// process.features can be undefined on Edge runtime
|
|
379
379
|
// TODO: Remove `as any` once we bump @types/node to v22.10.0+
|
|
380
|
+
// TODO(as-any): pre-existing cast, not yet reviewed
|
|
381
|
+
// eslint-disable-next-line @next/internal/no-as-any
|
|
380
382
|
...process?.features?.typescript ? [
|
|
381
383
|
"next.config.mts"
|
|
382
384
|
] : []
|
|
@@ -463,9 +465,9 @@ var require_constants = __commonJS({
|
|
|
463
465
|
}
|
|
464
466
|
});
|
|
465
467
|
|
|
466
|
-
// ../../node_modules/.pnpm/next@16.5.0-canary.
|
|
468
|
+
// ../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js
|
|
467
469
|
var require_constants2 = __commonJS({
|
|
468
|
-
"../../node_modules/.pnpm/next@16.5.0-canary.
|
|
470
|
+
"../../node_modules/.pnpm/next@16.5.0-canary.56_@types+node@20.6.5_react-dom@19.1.1_react@19.1.1__react@19.1.1/node_modules/next/constants.js"(exports2, module2) {
|
|
469
471
|
module2.exports = require_constants();
|
|
470
472
|
}
|
|
471
473
|
});
|
|
@@ -11125,8 +11127,18 @@ async function isFile(file) {
|
|
|
11125
11127
|
}
|
|
11126
11128
|
|
|
11127
11129
|
// src/index.ts
|
|
11130
|
+
function getHtmlLimitedBotsPattern(config) {
|
|
11131
|
+
const pattern = config.htmlLimitedBots;
|
|
11132
|
+
return Buffer.byteLength(pattern, "utf8") <= 1024 ? pattern : void 0;
|
|
11133
|
+
}
|
|
11128
11134
|
var myAdapter = {
|
|
11129
11135
|
name: "Vercel",
|
|
11136
|
+
getCapabilities({ config }) {
|
|
11137
|
+
return {
|
|
11138
|
+
supportsHtmlLimitedBotPrerenders: getHtmlLimitedBotsPattern(config) !== void 0,
|
|
11139
|
+
supportsPrerenderMethodBypass: true
|
|
11140
|
+
};
|
|
11141
|
+
},
|
|
11130
11142
|
async modifyConfig(config, ctx) {
|
|
11131
11143
|
if (ctx.phase === import_constants3.PHASE_PRODUCTION_BUILD && process.env.CI) {
|
|
11132
11144
|
process.env.TURBO_ENGINE_READ_CONCURRENCY = "4";
|
|
@@ -11187,8 +11199,26 @@ var myAdapter = {
|
|
|
11187
11199
|
const hasPagesDir = outputs.pages.length > 0 || outputs.pagesApi.length > 0;
|
|
11188
11200
|
const shouldHandleMiddlewareDataResolving = routing.shouldNormalizeNextData;
|
|
11189
11201
|
const i18nConfig = config.i18n;
|
|
11202
|
+
const htmlLimitedBotsRegex = getHtmlLimitedBotsPattern(config);
|
|
11190
11203
|
const vercelConfig2 = {
|
|
11191
11204
|
version: 3,
|
|
11205
|
+
afterCacheBypass: config.cacheComponents && htmlLimitedBotsRegex !== void 0 ? [
|
|
11206
|
+
{
|
|
11207
|
+
name: "HTML Limited Bots",
|
|
11208
|
+
hasAll: [
|
|
11209
|
+
{
|
|
11210
|
+
type: "request.header",
|
|
11211
|
+
key: "user-agent",
|
|
11212
|
+
value: { re: htmlLimitedBotsRegex }
|
|
11213
|
+
},
|
|
11214
|
+
{
|
|
11215
|
+
type: "cache.response.header",
|
|
11216
|
+
key: "x-next-prelude-metadata",
|
|
11217
|
+
value: { eq: "0" }
|
|
11218
|
+
}
|
|
11219
|
+
]
|
|
11220
|
+
}
|
|
11221
|
+
] : void 0,
|
|
11192
11222
|
overrides: {},
|
|
11193
11223
|
wildcard: i18nConfig?.domains ? i18nConfig.domains.map((item) => {
|
|
11194
11224
|
return {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "31.0.
|
|
3
|
+
"version": "31.0.1-snapshot-f10b9946b10d",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@vercel/build-utils": "15.5.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@next-community/adapter-vercel": "0.1.0-beta.
|
|
22
|
+
"@next-community/adapter-vercel": "0.1.0-beta.39",
|
|
23
23
|
"@types/aws-lambda": "8.10.19",
|
|
24
24
|
"@types/buffer-crc32": "0.2.0",
|
|
25
25
|
"@types/bytes": "3.1.1",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"webpack-sources": "3.2.3",
|
|
63
63
|
"@vercel/build-utils": "15.5.0",
|
|
64
64
|
"@vercel/go": "30.0.0",
|
|
65
|
-
"@vercel/
|
|
66
|
-
"@vercel
|
|
65
|
+
"@vercel-internals/ipc-proxy": "1.1.4",
|
|
66
|
+
"@vercel/routing-utils": "6.6.1"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"build": "node build.mjs",
|