@vercel/next 4.2.9 → 4.2.11
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.
- package/dist/index.js +43 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -12656,6 +12656,9 @@ async function getSourceFilePathFromPage({
|
|
12656
12656
|
}
|
12657
12657
|
}
|
12658
12658
|
}
|
12659
|
+
if (page === "/_not-found/page") {
|
12660
|
+
return "";
|
12661
|
+
}
|
12659
12662
|
console.log(
|
12660
12663
|
`WARNING: Unable to find source file for page ${page} with extensions: ${extensionsToTry.join(
|
12661
12664
|
", "
|
@@ -12718,12 +12721,13 @@ async function getPageLambdaGroups({
|
|
12718
12721
|
opts = functionsConfigManifest.functions[routeName];
|
12719
12722
|
}
|
12720
12723
|
if (config && config.functions) {
|
12721
|
-
const pageFromManifest = inversedAppPathManifest?.[routeName];
|
12722
12724
|
const sourceFile = await getSourceFilePathFromPage({
|
12723
12725
|
workPath: entryPath,
|
12724
|
-
|
12725
|
-
|
12726
|
-
|
12726
|
+
page: normalizeSourceFilePageFromManifest(
|
12727
|
+
routeName,
|
12728
|
+
page,
|
12729
|
+
inversedAppPathManifest
|
12730
|
+
),
|
12727
12731
|
pageExtensions
|
12728
12732
|
});
|
12729
12733
|
const vercelConfigOpts = await (0, import_build_utils.getLambdaOptionsFromFunction)({
|
@@ -12779,6 +12783,28 @@ async function getPageLambdaGroups({
|
|
12779
12783
|
}
|
12780
12784
|
return groups;
|
12781
12785
|
}
|
12786
|
+
function normalizeSourceFilePageFromManifest(routeName, page, inversedAppPathManifest) {
|
12787
|
+
const pageFromManifest = inversedAppPathManifest?.[routeName];
|
12788
|
+
if (!pageFromManifest) {
|
12789
|
+
return page;
|
12790
|
+
}
|
12791
|
+
const metadataConventions = [
|
12792
|
+
"/favicon.",
|
12793
|
+
"/icon.",
|
12794
|
+
"/apple-icon.",
|
12795
|
+
"/opengraph-image.",
|
12796
|
+
"/twitter-image.",
|
12797
|
+
"/sitemap.",
|
12798
|
+
"/robots."
|
12799
|
+
];
|
12800
|
+
const isSpecialFile = metadataConventions.some(
|
12801
|
+
(convention) => routeName.startsWith(convention)
|
12802
|
+
);
|
12803
|
+
if (isSpecialFile) {
|
12804
|
+
return routeName;
|
12805
|
+
}
|
12806
|
+
return pageFromManifest;
|
12807
|
+
}
|
12782
12808
|
var outputFunctionFileSizeInfo = (pages, pseudoLayer, pseudoLayerUncompressedBytes, compressedPages) => {
|
12783
12809
|
const exceededLimitOutput = [];
|
12784
12810
|
console.log(
|
@@ -15741,7 +15767,7 @@ async function serverBuild({
|
|
15741
15767
|
// Also includes separate handling for index routes which should match to /index.action.
|
15742
15768
|
// This follows the same pattern as the rewrites for .rsc files.
|
15743
15769
|
{
|
15744
|
-
src: `^${import_path4.default.posix.join("/", entryDirectory, "
|
15770
|
+
src: `^${import_path4.default.posix.join("/", entryDirectory, "/?")}`,
|
15745
15771
|
dest: import_path4.default.posix.join("/", entryDirectory, "/index.action"),
|
15746
15772
|
has: [
|
15747
15773
|
{
|
@@ -15749,6 +15775,12 @@ async function serverBuild({
|
|
15749
15775
|
key: "next-action"
|
15750
15776
|
}
|
15751
15777
|
],
|
15778
|
+
missing: [
|
15779
|
+
{
|
15780
|
+
type: "header",
|
15781
|
+
key: rscHeader
|
15782
|
+
}
|
15783
|
+
],
|
15752
15784
|
continue: true,
|
15753
15785
|
override: true
|
15754
15786
|
},
|
@@ -15765,6 +15797,12 @@ async function serverBuild({
|
|
15765
15797
|
key: "next-action"
|
15766
15798
|
}
|
15767
15799
|
],
|
15800
|
+
missing: [
|
15801
|
+
{
|
15802
|
+
type: "header",
|
15803
|
+
key: rscHeader
|
15804
|
+
}
|
15805
|
+
],
|
15768
15806
|
continue: true,
|
15769
15807
|
override: true
|
15770
15808
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/next",
|
3
|
-
"version": "4.2.
|
3
|
+
"version": "4.2.11",
|
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.
|
16
|
+
"@vercel/nft": "0.27.0"
|
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": "8.
|
33
|
+
"@vercel/build-utils": "8.1.1",
|
34
34
|
"@vercel/routing-utils": "3.1.0",
|
35
35
|
"async-sema": "3.0.1",
|
36
36
|
"buffer-crc32": "0.2.13",
|