@vercel/next 3.1.29 → 3.2.0

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 CHANGED
@@ -45419,7 +45419,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
45419
45419
  currentRouteSrc = starterRouteSrc;
45420
45420
  }
45421
45421
  // add to existing route src if src length limit isn't reached
45422
- currentRouteSrc = `${currentRouteSrc.substring(0, currentRouteSrc.length - 1)}${currentRouteSrc[currentRouteSrc.length - 2] === '(' ? '' : '|'}${route})`;
45422
+ currentRouteSrc = `${currentRouteSrc.substring(0, currentRouteSrc.length - 1)}${currentRouteSrc[currentRouteSrc.length - 2] === '(' ? '' : '|'}${route}/?)`;
45423
45423
  if (isLastRoute) {
45424
45424
  pushRoute(currentRouteSrc);
45425
45425
  }
@@ -47475,6 +47475,7 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
47475
47475
  ...wasmFiles,
47476
47476
  ...assetFiles,
47477
47477
  },
47478
+ regions: edgeFunction.regions,
47478
47479
  entrypoint: 'index.js',
47479
47480
  envVarsInUse: edgeFunction.env,
47480
47481
  assets: (edgeFunction.assets ?? []).map(({ name }) => {
@@ -570,7 +570,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
570
570
  currentRouteSrc = starterRouteSrc;
571
571
  }
572
572
  // add to existing route src if src length limit isn't reached
573
- currentRouteSrc = `${currentRouteSrc.substring(0, currentRouteSrc.length - 1)}${currentRouteSrc[currentRouteSrc.length - 2] === '(' ? '' : '|'}${route})`;
573
+ currentRouteSrc = `${currentRouteSrc.substring(0, currentRouteSrc.length - 1)}${currentRouteSrc[currentRouteSrc.length - 2] === '(' ? '' : '|'}${route}/?)`;
574
574
  if (isLastRoute) {
575
575
  pushRoute(currentRouteSrc);
576
576
  }
package/dist/utils.js CHANGED
@@ -1436,6 +1436,7 @@ async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest,
1436
1436
  ...wasmFiles,
1437
1437
  ...assetFiles,
1438
1438
  },
1439
+ regions: edgeFunction.regions,
1439
1440
  entrypoint: 'index.js',
1440
1441
  envVarsInUse: edgeFunction.env,
1441
1442
  assets: (edgeFunction.assets ?? []).map(({ name }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.1.29",
3
+ "version": "3.2.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -44,7 +44,7 @@
44
44
  "@types/semver": "6.0.0",
45
45
  "@types/text-table": "0.2.1",
46
46
  "@types/webpack-sources": "3.2.0",
47
- "@vercel/build-utils": "5.5.0",
47
+ "@vercel/build-utils": "5.5.2",
48
48
  "@vercel/nft": "0.22.1",
49
49
  "@vercel/routing-utils": "2.0.2",
50
50
  "async-sema": "3.0.1",
@@ -69,5 +69,5 @@
69
69
  "typescript": "4.5.2",
70
70
  "webpack-sources": "3.2.3"
71
71
  },
72
- "gitHead": "a825bc95409aa1403e062e45afebe194c8197061"
72
+ "gitHead": "8cd84ec066fb50de6c3c4630465f896609e8f412"
73
73
  }