@vercel/next 4.12.3 → 4.12.5
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 +27 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12094,8 +12094,8 @@ async function getPageLambdaGroups({
|
|
|
12094
12094
|
});
|
|
12095
12095
|
opts = { ...vercelConfigOpts, ...opts };
|
|
12096
12096
|
}
|
|
12097
|
-
const isGeneratedSteps = routeName.includes("api/generated/steps");
|
|
12098
|
-
const isGeneratedWorkflows = routeName.includes("api/generated/workflows");
|
|
12097
|
+
const isGeneratedSteps = routeName.includes(".well-known/workflow/v1/step") || routeName.includes("api/generated/steps");
|
|
12098
|
+
const isGeneratedWorkflows = routeName.includes(".well-known/workflow/v1/flow") || routeName.includes("api/generated/workflows");
|
|
12099
12099
|
if (isGeneratedSteps || isGeneratedWorkflows) {
|
|
12100
12100
|
const sourceFile = await getSourceFilePathFromPage({
|
|
12101
12101
|
workPath: entryPath,
|
|
@@ -14296,7 +14296,7 @@ async function serverBuild({
|
|
|
14296
14296
|
const isAllowedOrigin = origin && clientParamParsingOrigins ? clientParamParsingOrigins.some(
|
|
14297
14297
|
(allowedOrigin) => new RegExp(allowedOrigin).test(origin)
|
|
14298
14298
|
) : false;
|
|
14299
|
-
if (origin && !isAllowedOrigin)
|
|
14299
|
+
if (origin && !isAllowedOrigin || !pathname && !query)
|
|
14300
14300
|
continue;
|
|
14301
14301
|
rewrite.headers = {
|
|
14302
14302
|
...rewrite.headers,
|
|
@@ -15504,6 +15504,30 @@ ${JSON.stringify(
|
|
|
15504
15504
|
// trailing slash
|
|
15505
15505
|
...trailingSlashRedirects,
|
|
15506
15506
|
...privateOutputs.routes,
|
|
15507
|
+
...isNextDataServerResolving ? [
|
|
15508
|
+
// ensure x-nextjs-data header is always present
|
|
15509
|
+
// if we are doing middleware next data resolving
|
|
15510
|
+
{
|
|
15511
|
+
src: import_path5.default.posix.join("/", entryDirectory, "/_next/data/(.*)"),
|
|
15512
|
+
missing: [
|
|
15513
|
+
{
|
|
15514
|
+
type: "header",
|
|
15515
|
+
key: "x-nextjs-data"
|
|
15516
|
+
}
|
|
15517
|
+
],
|
|
15518
|
+
transforms: [
|
|
15519
|
+
{
|
|
15520
|
+
type: "request.headers",
|
|
15521
|
+
op: "append",
|
|
15522
|
+
target: {
|
|
15523
|
+
key: "x-nextjs-data"
|
|
15524
|
+
},
|
|
15525
|
+
args: `1`
|
|
15526
|
+
}
|
|
15527
|
+
],
|
|
15528
|
+
continue: true
|
|
15529
|
+
}
|
|
15530
|
+
] : [],
|
|
15507
15531
|
// normalize _next/data URL before processing redirects
|
|
15508
15532
|
...normalizeNextDataRoute(true),
|
|
15509
15533
|
...i18n ? [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.5",
|
|
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": "
|
|
33
|
+
"@vercel/build-utils": "12.1.0",
|
|
34
34
|
"@vercel/routing-utils": "5.1.1",
|
|
35
35
|
"async-sema": "3.0.1",
|
|
36
36
|
"buffer-crc32": "0.2.13",
|