@vercel/next 4.15.9 → 4.15.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 +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12224,9 +12224,11 @@ async function getPageLambdaGroups({
12224
12224
  ),
12225
12225
  pageExtensions
12226
12226
  });
12227
+ const isAppRouterRoute = sourceFile.endsWith("/route.js") || sourceFile.endsWith("/route.ts");
12228
+ const configRelativePath = isAppRouterRoute ? "../config.json" : "./config.json";
12227
12229
  const config2 = JSON.parse(
12228
12230
  await import_fs_extra3.default.readFile(
12229
- import_path3.default.join(entryPath, import_path3.default.dirname(sourceFile), "../config.json"),
12231
+ import_path3.default.join(entryPath, import_path3.default.dirname(sourceFile), configRelativePath),
12230
12232
  "utf8"
12231
12233
  ).catch(() => "{}")
12232
12234
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.9",
3
+ "version": "4.15.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -52,7 +52,7 @@
52
52
  "test-listen": "1.1.0",
53
53
  "text-table": "0.2.0",
54
54
  "webpack-sources": "3.2.3",
55
- "@vercel/build-utils": "13.2.3",
55
+ "@vercel/build-utils": "13.2.4",
56
56
  "@vercel/routing-utils": "5.3.1"
57
57
  },
58
58
  "scripts": {