@vercel/next 3.3.16 → 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) {
@@ -42975,7 +42975,9 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
42975
42975
  return isNextDataServerResolving
42976
42976
  ? [
42977
42977
  {
42978
- src: path_1.default.posix.join('^/', entryDirectory, trailingSlash ? '/' : '', '$'),
42978
+ src: path_1.default.posix.join('^/', entryDirectory !== '.'
42979
+ ? `${entryDirectory}${trailingSlash ? '/$' : '$'}`
42980
+ : '$'),
42979
42981
  has: [
42980
42982
  {
42981
42983
  type: 'header',
@@ -43239,7 +43241,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
43239
43241
  continue: true,
43240
43242
  },
43241
43243
  {
43242
- src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+)$')}`,
43244
+ src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
43243
43245
  has: [
43244
43246
  {
43245
43247
  type: 'header',
@@ -613,7 +613,9 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
613
613
  return isNextDataServerResolving
614
614
  ? [
615
615
  {
616
- src: path_1.default.posix.join('^/', entryDirectory, trailingSlash ? '/' : '', '$'),
616
+ src: path_1.default.posix.join('^/', entryDirectory !== '.'
617
+ ? `${entryDirectory}${trailingSlash ? '/$' : '$'}`
618
+ : '$'),
617
619
  has: [
618
620
  {
619
621
  type: 'header',
@@ -877,7 +879,7 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
877
879
  continue: true,
878
880
  },
879
881
  {
880
- src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+)$')}`,
882
+ src: `^${path_1.default.posix.join('/', entryDirectory, '/((?!.+\\.rsc).+?)(?:/)?$')}`,
881
883
  has: [
882
884
  {
883
885
  type: 'header',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.3.16",
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": "79ef5c37246c75973c0af9f5fd04afa51f0859ba"
74
+ "gitHead": "92f5b6e0c9be947a68b617d282fc39144f530813"
75
75
  }