@vercel/next 3.8.0 → 3.8.1

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
@@ -45891,7 +45891,11 @@ function normalizeRegions(regions) {
45891
45891
  }
45892
45892
  newRegions.push(region);
45893
45893
  }
45894
- return [];
45894
+ // Ensure we don't pass an empty array as that is not supported.
45895
+ if (newRegions.length === 0) {
45896
+ return undefined;
45897
+ }
45898
+ return newRegions;
45895
45899
  }
45896
45900
  async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, appPathRoutesManifest, }) {
45897
45901
  const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
package/dist/utils.js CHANGED
@@ -1534,7 +1534,11 @@ function normalizeRegions(regions) {
1534
1534
  }
1535
1535
  newRegions.push(region);
1536
1536
  }
1537
- return [];
1537
+ // Ensure we don't pass an empty array as that is not supported.
1538
+ if (newRegions.length === 0) {
1539
+ return undefined;
1540
+ }
1541
+ return newRegions;
1538
1542
  }
1539
1543
  async function getMiddlewareBundle({ entryPath, outputDirectory, routesManifest, isCorrectMiddlewareOrder, prerenderBypassToken, nextVersion, appPathRoutesManifest, }) {
1540
1544
  const middlewareManifest = await getMiddlewareManifest(entryPath, outputDirectory);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.8.0",
3
+ "version": "3.8.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -60,5 +60,5 @@
60
60
  "text-table": "0.2.0",
61
61
  "webpack-sources": "3.2.3"
62
62
  },
63
- "gitHead": "b5db13c97035d0eae04a5e075ae74e488d1298d6"
63
+ "gitHead": "85947b658ee1b4b3b7fcb631bdc6e591ee1e338a"
64
64
  }