@vercel/next 32.0.0 → 33.0.0-snapshot-224301946cd2

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.
@@ -11217,20 +11217,16 @@ async function isFile(file) {
11217
11217
  }
11218
11218
 
11219
11219
  // src/index.ts
11220
- function prerenderBypassPoliciesEnabled() {
11221
- return process.env.VERCEL_NEXT_ADAPTER_PRERENDER_BYPASS_POLICIES === "1";
11222
- }
11223
11220
  function getHtmlLimitedBotsPattern(config) {
11224
11221
  const pattern = config.htmlLimitedBots;
11225
- return Buffer.byteLength(pattern, "utf8") <= 1024 ? pattern : void 0;
11222
+ return Buffer.byteLength(pattern, "utf8") <= 4096 ? pattern : void 0;
11226
11223
  }
11227
11224
  var myAdapter = {
11228
11225
  name: "Vercel",
11229
11226
  getCapabilities({ config }) {
11230
- const bypassPoliciesEnabled = prerenderBypassPoliciesEnabled();
11231
11227
  return {
11232
- supportsHtmlLimitedBotPrerenders: bypassPoliciesEnabled && getHtmlLimitedBotsPattern(config) !== void 0,
11233
- supportsPrerenderMethodBypass: bypassPoliciesEnabled
11228
+ supportsHtmlLimitedBotPrerenders: getHtmlLimitedBotsPattern(config) !== void 0,
11229
+ supportsPrerenderMethodBypass: true
11234
11230
  };
11235
11231
  },
11236
11232
  async modifyConfig(config, ctx) {
@@ -11293,7 +11289,7 @@ var myAdapter = {
11293
11289
  const hasPagesDir = outputs.pages.length > 0 || outputs.pagesApi.length > 0;
11294
11290
  const shouldHandleMiddlewareDataResolving = routing.shouldNormalizeNextData;
11295
11291
  const i18nConfig = config.i18n;
11296
- const htmlLimitedBotsRegex = prerenderBypassPoliciesEnabled() ? getHtmlLimitedBotsPattern(config) : void 0;
11292
+ const htmlLimitedBotsRegex = getHtmlLimitedBotsPattern(config);
11297
11293
  const vercelConfig2 = {
11298
11294
  version: 3,
11299
11295
  afterCacheBypass: config.cacheComponents && htmlLimitedBotsRegex !== void 0 ? [
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "32.0.0",
3
+ "version": "33.0.0-snapshot-224301946cd2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -14,13 +14,13 @@
14
14
  ],
15
15
  "dependencies": {
16
16
  "@vercel/nft": "1.10.0",
17
- "@vercel/container": "28.0.0"
17
+ "@vercel/container": "29.0.0-snapshot-224301946cd2"
18
18
  },
19
19
  "peerDependencies": {
20
- "@vercel/build-utils": "15.6.0"
20
+ "@vercel/build-utils": "15.7.0-snapshot-224301946cd2"
21
21
  },
22
22
  "devDependencies": {
23
- "@next-community/adapter-vercel": "0.1.0-beta.41",
23
+ "@next-community/adapter-vercel": "0.1.0-beta.42",
24
24
  "@types/aws-lambda": "8.10.19",
25
25
  "@types/buffer-crc32": "0.2.0",
26
26
  "@types/bytes": "3.1.1",
@@ -61,8 +61,8 @@
61
61
  "vite": "6.4.3",
62
62
  "vitest": "4.1.10",
63
63
  "webpack-sources": "3.2.3",
64
- "@vercel/build-utils": "15.6.0",
65
- "@vercel/go": "31.0.0",
64
+ "@vercel/build-utils": "15.7.0-snapshot-224301946cd2",
65
+ "@vercel/go": "32.0.0-snapshot-224301946cd2",
66
66
  "@vercel-internals/ipc-proxy": "1.1.4",
67
67
  "@vercel/routing-utils": "6.6.1"
68
68
  },