@vercel/next 4.15.13 → 4.15.14

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 +10 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -16505,18 +16505,17 @@ var build = async (buildOptions) => {
16505
16505
  config,
16506
16506
  meta
16507
16507
  );
16508
- const spawnOpts = (0, import_build_utils3.getSpawnOptions)(meta, nodeVersion);
16509
16508
  const {
16510
16509
  cliType,
16511
16510
  lockfileVersion,
16512
16511
  packageJsonPackageManager,
16513
16512
  turboSupportsCorepackHome
16514
16513
  } = await (0, import_build_utils3.scanParentDirs)(entryPath, true);
16515
- spawnOpts.env = (0, import_build_utils3.getEnvForPackageManager)({
16514
+ const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
16516
16515
  cliType,
16517
16516
  lockfileVersion,
16518
16517
  packageJsonPackageManager,
16519
- env: spawnOpts.env || {},
16518
+ env: process.env,
16520
16519
  turboSupportsCorepackHome,
16521
16520
  projectCreatedAt: config.projectSettings?.createdAt
16522
16521
  });
@@ -16593,14 +16592,14 @@ var build = async (buildOptions) => {
16593
16592
  `Running "install" command: \`${trimmedInstallCommand}\`...`
16594
16593
  );
16595
16594
  await (0, import_build_utils3.execCommand)(trimmedInstallCommand, {
16596
- ...spawnOpts,
16595
+ env: spawnEnv,
16597
16596
  cwd: entryPath
16598
16597
  });
16599
16598
  } else {
16600
16599
  await (0, import_build_utils3.runNpmInstall)(
16601
16600
  entryPath,
16602
16601
  [],
16603
- spawnOpts,
16602
+ { env: spawnEnv },
16604
16603
  meta,
16605
16604
  config.projectSettings?.createdAt
16606
16605
  );
@@ -16609,14 +16608,14 @@ var build = async (buildOptions) => {
16609
16608
  } else {
16610
16609
  console.log(`Skipping "install" command...`);
16611
16610
  }
16612
- if (spawnOpts.env.VERCEL_ANALYTICS_ID) {
16611
+ if (spawnEnv.VERCEL_ANALYTICS_ID) {
16613
16612
  (0, import_build_utils3.debug)("Found VERCEL_ANALYTICS_ID in environment");
16614
16613
  const version2 = await (0, import_build_utils3.getInstalledPackageVersion)(
16615
16614
  "@vercel/speed-insights",
16616
16615
  entryPath
16617
16616
  );
16618
16617
  if (version2) {
16619
- delete spawnOpts.env.VERCEL_ANALYTICS_ID;
16618
+ delete spawnEnv.VERCEL_ANALYTICS_ID;
16620
16619
  delete process.env.VERCEL_ANALYTICS_ID;
16621
16620
  (0, import_build_utils3.debug)(
16622
16621
  "@vercel/speed-insights is installed, removing VERCEL_ANALYTICS_ID from environment"
@@ -16666,7 +16665,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
16666
16665
  } else if (!isLegacy) {
16667
16666
  target = await createServerlessConfig(workPath, entryPath, nextVersion);
16668
16667
  }
16669
- const env = { ...spawnOpts.env };
16668
+ const env = { ...spawnEnv };
16670
16669
  env.NEXT_EDGE_RUNTIME_PROVIDER = "vercel";
16671
16670
  if (target) {
16672
16671
  env.NEXT_PRIVATE_TARGET = target;
@@ -16699,7 +16698,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
16699
16698
  );
16700
16699
  console.log(`Running "${buildCommand}"`);
16701
16700
  await (0, import_build_utils3.execCommand)(buildCommand, {
16702
- ...spawnOpts,
16703
16701
  cwd: entryPath,
16704
16702
  env
16705
16703
  });
@@ -16708,7 +16706,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
16708
16706
  entryPath,
16709
16707
  buildScriptName,
16710
16708
  {
16711
- ...spawnOpts,
16712
16709
  env
16713
16710
  },
16714
16711
  config.projectSettings?.createdAt
@@ -17149,7 +17146,9 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
17149
17146
  await (0, import_build_utils3.runNpmInstall)(
17150
17147
  entryPath,
17151
17148
  ["--production"],
17152
- spawnOpts,
17149
+ {
17150
+ env: spawnEnv
17151
+ },
17153
17152
  meta,
17154
17153
  config.projectSettings?.createdAt
17155
17154
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.15.13",
3
+ "version": "4.15.14",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -52,8 +52,8 @@
52
52
  "test-listen": "1.1.0",
53
53
  "text-table": "0.2.0",
54
54
  "webpack-sources": "3.2.3",
55
- "@vercel/build-utils": "13.2.7",
56
- "@vercel/routing-utils": "5.3.2"
55
+ "@vercel/routing-utils": "5.3.2",
56
+ "@vercel/build-utils": "13.2.8"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "node build.mjs",