@vercel/next 4.0.14 → 4.0.15

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 +10 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10364,7 +10364,8 @@ async function getPageLambdaGroups({
10364
10364
  initialPseudoLayerUncompressed,
10365
10365
  lambdaCompressedByteLimit,
10366
10366
  internalPages,
10367
- pageExtensions
10367
+ pageExtensions,
10368
+ inversedAppPathManifest
10368
10369
  }) {
10369
10370
  const groups = [];
10370
10371
  for (const page of pages) {
@@ -10377,9 +10378,12 @@ async function getPageLambdaGroups({
10377
10378
  opts = functionsConfigManifest.functions[routeName];
10378
10379
  }
10379
10380
  if (config && config.functions) {
10381
+ const pageFromManifest = inversedAppPathManifest?.[routeName];
10380
10382
  const sourceFile = await getSourceFilePathFromPage({
10381
10383
  workPath: entryPath,
10382
- page,
10384
+ // since this function is used by both `pages` and `app`, the manifest might not be provided
10385
+ // so fallback to normal behavior of just checking the `page`.
10386
+ page: pageFromManifest ?? page,
10383
10387
  pageExtensions
10384
10388
  });
10385
10389
  const vercelConfigOpts = await (0, import_build_utils.getLambdaOptionsFromFunction)({
@@ -12509,7 +12513,8 @@ async function serverBuild({
12509
12513
  lambdaCompressedByteLimit,
12510
12514
  initialPseudoLayerUncompressed: uncompressedInitialSize,
12511
12515
  internalPages,
12512
- pageExtensions
12516
+ pageExtensions,
12517
+ inversedAppPathManifest
12513
12518
  });
12514
12519
  const appRouteHandlersLambdaGroups = await getPageLambdaGroups({
12515
12520
  entryPath: projectDir,
@@ -12525,7 +12530,8 @@ async function serverBuild({
12525
12530
  lambdaCompressedByteLimit,
12526
12531
  initialPseudoLayerUncompressed: uncompressedInitialSize,
12527
12532
  internalPages,
12528
- pageExtensions
12533
+ pageExtensions,
12534
+ inversedAppPathManifest
12529
12535
  });
12530
12536
  for (const group of appRouterLambdaGroups) {
12531
12537
  if (!group.isPrerenders || group.isExperimentalPPR) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.0.14",
3
+ "version": "4.0.15",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -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.3",
33
+ "@vercel/build-utils": "7.2.5",
34
34
  "@vercel/routing-utils": "3.1.0",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",