@vercel/next 4.12.2 → 4.12.4

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 +5 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12119,7 +12119,7 @@ async function getPageLambdaGroups({
12119
12119
  }
12120
12120
  }
12121
12121
  let matchingGroup = experimentalAllowBundling ? void 0 : groups.find((group) => {
12122
- const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers);
12122
+ const matches = group.maxDuration === opts.maxDuration && group.memory === opts.memory && group.isPrerenders === isPrerenderRoute && group.isExperimentalPPR === isExperimentalPPR && JSON.stringify(group.experimentalTriggers) === JSON.stringify(opts.experimentalTriggers) && group.supportsCancellation === opts.supportsCancellation;
12123
12123
  if (matches) {
12124
12124
  let newTracedFilesUncompressedSize = group.pseudoLayerUncompressedBytes;
12125
12125
  for (const newPage of newPages) {
@@ -12148,7 +12148,8 @@ async function getPageLambdaGroups({
12148
12148
  pseudoLayerBytes: initialPseudoLayer.pseudoLayerBytes,
12149
12149
  pseudoLayerUncompressedBytes: initialPseudoLayerUncompressed,
12150
12150
  pseudoLayer: Object.assign({}, initialPseudoLayer.pseudoLayer),
12151
- experimentalTriggers: opts.experimentalTriggers
12151
+ experimentalTriggers: opts.experimentalTriggers,
12152
+ supportsCancellation: opts.supportsCancellation
12152
12153
  };
12153
12154
  groups.push(newGroup);
12154
12155
  matchingGroup = newGroup;
@@ -14295,7 +14296,7 @@ async function serverBuild({
14295
14296
  const isAllowedOrigin = origin && clientParamParsingOrigins ? clientParamParsingOrigins.some(
14296
14297
  (allowedOrigin) => new RegExp(allowedOrigin).test(origin)
14297
14298
  ) : false;
14298
- if (origin && !isAllowedOrigin)
14299
+ if (origin && !isAllowedOrigin || !pathname && !query)
14299
14300
  continue;
14300
14301
  rewrite.headers = {
14301
14302
  ...rewrite.headers,
@@ -15031,6 +15032,7 @@ ${JSON.stringify(
15031
15032
  memory: group.memory,
15032
15033
  runtime: nodeVersion.runtime,
15033
15034
  maxDuration: group.maxDuration,
15035
+ supportsCancellation: group.supportsCancellation,
15034
15036
  isStreaming: group.isStreaming,
15035
15037
  nextVersion,
15036
15038
  experimentalAllowBundling,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.12.2",
3
+ "version": "4.12.4",
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": "11.0.2",
33
+ "@vercel/build-utils": "12.0.0",
34
34
  "@vercel/routing-utils": "5.1.1",
35
35
  "async-sema": "3.0.1",
36
36
  "buffer-crc32": "0.2.13",