@vercel/next 4.21.6 → 4.21.7

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -6
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -11333,10 +11333,6 @@ function getMaxUncompressedLambdaSize(runtime) {
11333
11333
  }
11334
11334
  return runtime.startsWith("bun") ? DEFAULT_MAX_UNCOMPRESSED_LAMBDA_SIZE_BUN : DEFAULT_MAX_UNCOMPRESSED_LAMBDA_SIZE;
11335
11335
  }
11336
- var LARGE_FUNCTIONS_ENV = "NEXT_EXPERIMENTAL_LARGE_FUNCTIONS";
11337
- function isLargeFunctionsEnabled() {
11338
- return Boolean(process.env[LARGE_FUNCTIONS_ENV]);
11339
- }
11340
11336
  function getGroupMaxUncompressedLambdaSize(runtime, isLargeFunctions) {
11341
11337
  return isLargeFunctions ? DEFAULT_MAX_UNCOMPRESSED_LARGE_LAMBDA_SIZE : getMaxUncompressedLambdaSize(runtime);
11342
11338
  }
@@ -12339,7 +12335,6 @@ async function getPageLambdaGroups({
12339
12335
  nodeVersion
12340
12336
  }) {
12341
12337
  const groups = [];
12342
- const largeFunctionsEnabled = isLargeFunctionsEnabled();
12343
12338
  for (const page of pages) {
12344
12339
  const newPages = [...internalPages, page];
12345
12340
  const routeName = normalizePage(page.replace(/\.js$/, ""));
@@ -12393,7 +12388,7 @@ async function getPageLambdaGroups({
12393
12388
  }
12394
12389
  }
12395
12390
  let isLargeFunction = false;
12396
- if (largeFunctionsEnabled && !experimentalAllowBundling) {
12391
+ if (!experimentalAllowBundling) {
12397
12392
  let standaloneUncompressedSize = initialPseudoLayerUncompressed;
12398
12393
  const countedFiles = new Set(
12399
12394
  Object.keys(initialPseudoLayer.pseudoLayer)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.21.6",
3
+ "version": "4.21.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -55,7 +55,7 @@
55
55
  "vitest": "4.1.10",
56
56
  "webpack-sources": "3.2.3",
57
57
  "@vercel/routing-utils": "6.5.0",
58
- "@vercel/build-utils": "14.1.1"
58
+ "@vercel/build-utils": "14.2.0"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "node build.mjs",
@@ -65,6 +65,7 @@
65
65
  "test-next-local-legacy": "vitest run --config ../../vitest.config.mts test/integration/legacy/*.test.js",
66
66
  "test-next-local:middleware": "vitest run --config ../../vitest.config.mts test/integration/middleware.test.ts",
67
67
  "test-e2e": "rm -f test/builder-info.json; vitest run --config ../../vitest.config.mts test/fixtures/ --exclude test/fixtures/00-bun-runtime/index.test.ts",
68
+ "test-e2e-builder": "pnpm run test-e2e",
68
69
  "type-check": "tsc --noEmit"
69
70
  }
70
71
  }