@vercel/next 4.15.38 → 4.15.40
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/adapter/index.js +1 -1
- package/dist/index.js +9 -9
- package/package.json +2 -2
package/dist/adapter/index.js
CHANGED
|
@@ -9768,7 +9768,7 @@ async function handleNodeOutputs(nodeOutputs, {
|
|
|
9768
9768
|
),
|
|
9769
9769
|
runtime: nodeVersion.runtime,
|
|
9770
9770
|
maxDuration,
|
|
9771
|
-
|
|
9771
|
+
supportsMultiPayloads: true,
|
|
9772
9772
|
supportsResponseStreaming: true,
|
|
9773
9773
|
experimentalAllowBundling: true,
|
|
9774
9774
|
// middleware handler always expects Request/Response interface
|
package/dist/index.js
CHANGED
|
@@ -928,7 +928,7 @@ var require_superstatic = __commonJS({
|
|
|
928
928
|
route.missing = r.missing;
|
|
929
929
|
}
|
|
930
930
|
return route;
|
|
931
|
-
} catch (
|
|
931
|
+
} catch (_e) {
|
|
932
932
|
throw new Error(`Failed to parse redirect: ${JSON.stringify(r)}`);
|
|
933
933
|
}
|
|
934
934
|
});
|
|
@@ -961,7 +961,7 @@ var require_superstatic = __commonJS({
|
|
|
961
961
|
route.status = r.statusCode;
|
|
962
962
|
}
|
|
963
963
|
return route;
|
|
964
|
-
} catch (
|
|
964
|
+
} catch (_e) {
|
|
965
965
|
throw new Error(`Failed to parse rewrite: ${JSON.stringify(r)}`);
|
|
966
966
|
}
|
|
967
967
|
});
|
|
@@ -1172,7 +1172,7 @@ var require_superstatic = __commonJS({
|
|
|
1172
1172
|
if (attemptDirectCompile) {
|
|
1173
1173
|
try {
|
|
1174
1174
|
return (0, import_path_to_regexp.compile)(value, { validate: false })(indexes);
|
|
1175
|
-
} catch (
|
|
1175
|
+
} catch (_e) {
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
for (const key of Object.keys(indexes)) {
|
|
@@ -12839,6 +12839,7 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12839
12839
|
headers: { "x-matched-path": paths.pathname }
|
|
12840
12840
|
};
|
|
12841
12841
|
}
|
|
12842
|
+
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12842
12843
|
let htmlAllowQuery = allowQuery;
|
|
12843
12844
|
if (renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && // TODO(NAR-402): Investigate omitted routes
|
|
12844
12845
|
(isFallback || isBlocking)) {
|
|
@@ -12850,10 +12851,9 @@ var onPrerenderRoute = (prerenderRouteArgs) => async (routeKey, {
|
|
|
12850
12851
|
) {
|
|
12851
12852
|
htmlAllowQuery = fallbackRootParams;
|
|
12852
12853
|
} else if (postponedPrerender) {
|
|
12853
|
-
htmlAllowQuery = [];
|
|
12854
|
+
htmlAllowQuery = partialFallback && isAppClientParamParsingEnabled ? allowQuery : [];
|
|
12854
12855
|
}
|
|
12855
12856
|
}
|
|
12856
|
-
const partialFallback = isAppPathRoute && renderingMode === "PARTIALLY_STATIC" /* PARTIALLY_STATIC */ && isFallback && Boolean(postponedState);
|
|
12857
12857
|
const staticMetadataFile = getSourceFileRefOfStaticMetadata(
|
|
12858
12858
|
routeKey,
|
|
12859
12859
|
appPathnameFilesMap
|
|
@@ -13847,7 +13847,7 @@ async function getServerActionMetaRoutes(distDir) {
|
|
|
13847
13847
|
}
|
|
13848
13848
|
}
|
|
13849
13849
|
return routes;
|
|
13850
|
-
} catch (
|
|
13850
|
+
} catch (_error) {
|
|
13851
13851
|
return [];
|
|
13852
13852
|
}
|
|
13853
13853
|
}
|
|
@@ -14912,7 +14912,7 @@ ${JSON.stringify(
|
|
|
14912
14912
|
await import_fs_extra5.default.readFile(`${serverComponentFile}.nft.json`, "utf8")
|
|
14913
14913
|
);
|
|
14914
14914
|
scTrace.files.forEach((file) => files2.push(file));
|
|
14915
|
-
} catch (
|
|
14915
|
+
} catch (_err) {
|
|
14916
14916
|
}
|
|
14917
14917
|
}
|
|
14918
14918
|
fileList = [];
|
|
@@ -16465,7 +16465,7 @@ async function readPackageJson(entryPath) {
|
|
|
16465
16465
|
const packagePath = import_path6.default.join(entryPath, "package.json");
|
|
16466
16466
|
try {
|
|
16467
16467
|
return JSON.parse(await (0, import_fs_extra6.readFile)(packagePath, "utf8"));
|
|
16468
|
-
} catch (
|
|
16468
|
+
} catch (_err) {
|
|
16469
16469
|
(0, import_build_utils3.debug)("package.json not found in entry");
|
|
16470
16470
|
return {};
|
|
16471
16471
|
}
|
|
@@ -16896,7 +16896,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16896
16896
|
"utf8"
|
|
16897
16897
|
);
|
|
16898
16898
|
escapedBuildId = (0, import_escape_string_regexp3.default)(buildId);
|
|
16899
|
-
} catch (
|
|
16899
|
+
} catch (_err) {
|
|
16900
16900
|
throw new import_build_utils3.NowBuildError({
|
|
16901
16901
|
code: "NOW_NEXT_NO_BUILD_ID",
|
|
16902
16902
|
message: 'The BUILD_ID file was not found in the Output Directory. Did you forget to run "next build" in your Build Command?'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.40",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@vercel/nft": "1.1.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@next-community/adapter-vercel": "0.0.1-beta.
|
|
19
|
+
"@next-community/adapter-vercel": "0.0.1-beta.12",
|
|
20
20
|
"@types/aws-lambda": "8.10.19",
|
|
21
21
|
"@types/buffer-crc32": "0.2.0",
|
|
22
22
|
"@types/bytes": "3.1.1",
|