@vercel/next 3.3.17 → 3.3.18

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
@@ -40240,7 +40240,7 @@ const build = async ({ files, workPath, repoRootPath, entrypoint, config = {}, m
40240
40240
  repoRootPath = entryPath;
40241
40241
  entryPath = path_1.default.join(entryPath, config.rootDirectory);
40242
40242
  }
40243
- const outputDirectory = config.outputDirectory || '.next';
40243
+ const outputDirectory = path_1.default.join('./', config.outputDirectory || '.next');
40244
40244
  const dotNextStatic = path_1.default.join(entryPath, outputDirectory, 'static');
40245
40245
  // TODO: remove after testing used for simulating root directory monorepo
40246
40246
  // setting that can't be triggered with vercel.json
@@ -41958,7 +41958,7 @@ const prepareCache = async ({ workPath, repoRootPath, entrypoint, config = {}, }
41958
41958
  (0, build_utils_1.debug)('Preparing cache...');
41959
41959
  const entryDirectory = path_1.default.dirname(entrypoint);
41960
41960
  const entryPath = path_1.default.join(workPath, entryDirectory);
41961
- const outputDirectory = config.outputDirectory || '.next';
41961
+ const outputDirectory = path_1.default.join('./', config.outputDirectory || '.next');
41962
41962
  const nextVersionRange = await getNextVersionRange(entryPath);
41963
41963
  const isLegacy = nextVersionRange && isLegacyNext(nextVersionRange);
41964
41964
  if (isLegacy) {
@@ -43241,7 +43241,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
43241
43241
  continue: true,
43242
43242
  },
43243
43243
  {
43244
- src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+)$')}`,
43244
+ src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
43245
43245
  has: [
43246
43246
  {
43247
43247
  type: 'header',
@@ -879,7 +879,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
879
879
  continue: true,
880
880
  },
881
881
  {
882
- src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+)$')}`,
882
+ src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
883
883
  has: [
884
884
  {
885
885
  type: 'header',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.3.17",
3
+ "version": "3.3.18",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -71,5 +71,5 @@
71
71
  "typescript": "4.5.2",
72
72
  "webpack-sources": "3.2.3"
73
73
  },
74
- "gitHead": "e174a06673de32a4d0db58e9f6343db5d476e7d0"
74
+ "gitHead": "92f5b6e0c9be947a68b617d282fc39144f530813"
75
75
  }