@vercel/next 4.0.8 → 4.0.10

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 +5 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9498,7 +9498,7 @@ var prettyBytes = (n) => (0, import_bytes.default)(n, { unitSeparator: " " });
9498
9498
  var import_get_nextjs_edge_function = __toESM(require_get_nextjs_edge_function());
9499
9499
  var gzip = (0, import_util.promisify)(import_zlib.default.gzip);
9500
9500
  async function getNextjsEdgeFunctionSource(filePaths, params, outputDir, wasm) {
9501
- const chunks = new import_webpack_sources2.ConcatSource(raw(`let _ENTRIES = {};`));
9501
+ const chunks = new import_webpack_sources2.ConcatSource(raw(`globalThis._ENTRIES = {};`));
9502
9502
  for (const filePath of filePaths) {
9503
9503
  const fullFilePath = (0, import_path.join)(outputDir, filePath);
9504
9504
  const content = await (0, import_fs_extra2.readFile)(fullFilePath, "utf8");
@@ -11005,6 +11005,9 @@ function normalizeEdgeFunctionPath(shortPath, appPathRoutesManifest) {
11005
11005
  shortPath = "index";
11006
11006
  }
11007
11007
  }
11008
+ if (shortPath.startsWith("pages/")) {
11009
+ shortPath = shortPath.replace(/^pages\//, "");
11010
+ }
11008
11011
  return shortPath;
11009
11012
  }
11010
11013
  async function getMiddlewareBundle({
@@ -11758,7 +11761,7 @@ var CORRECT_MIDDLEWARE_ORDER_VERSION = "v12.1.7-canary.29";
11758
11761
  var NEXT_DATA_MIDDLEWARE_RESOLVING_VERSION = "v12.1.7-canary.33";
11759
11762
  var EMPTY_ALLOW_QUERY_FOR_PRERENDERED_VERSION = "v12.2.0";
11760
11763
  var CORRECTED_MANIFESTS_VERSION = "v12.2.0";
11761
- var BUNDLED_SERVER_NEXT_VERSION = "13.4.20-canary.26";
11764
+ var BUNDLED_SERVER_NEXT_VERSION = "v13.5.4";
11762
11765
  var BUNDLED_SERVER_NEXT_PATH = "next/dist/compiled/next-server/server.runtime.prod.js";
11763
11766
  async function serverBuild({
11764
11767
  dynamicPages,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -13,7 +13,7 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@vercel/nft": "0.24.1"
16
+ "@vercel/nft": "0.24.2"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/aws-lambda": "8.10.19",
@@ -30,7 +30,7 @@
30
30
  "@types/semver": "6.0.0",
31
31
  "@types/text-table": "0.2.1",
32
32
  "@types/webpack-sources": "3.2.0",
33
- "@vercel/build-utils": "7.2.1",
33
+ "@vercel/build-utils": "7.2.2",
34
34
  "@vercel/routing-utils": "3.0.0",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",