@vercel/next 4.15.13 → 4.15.15
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 +11 -17
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16499,24 +16499,18 @@ var build = async (buildOptions) => {
|
|
|
16499
16499
|
}
|
|
16500
16500
|
let pkg = await readPackageJson(entryPath);
|
|
16501
16501
|
const nextVersionRange = await getNextVersionRange(entryPath);
|
|
16502
|
-
const nodeVersion = await (0, import_build_utils3.
|
|
16503
|
-
entryPath,
|
|
16504
|
-
void 0,
|
|
16505
|
-
config,
|
|
16506
|
-
meta
|
|
16507
|
-
);
|
|
16508
|
-
const spawnOpts = (0, import_build_utils3.getSpawnOptions)(meta, nodeVersion);
|
|
16502
|
+
const nodeVersion = await (0, import_build_utils3.getNodeVersion)(entryPath, void 0, config, meta);
|
|
16509
16503
|
const {
|
|
16510
16504
|
cliType,
|
|
16511
16505
|
lockfileVersion,
|
|
16512
16506
|
packageJsonPackageManager,
|
|
16513
16507
|
turboSupportsCorepackHome
|
|
16514
16508
|
} = await (0, import_build_utils3.scanParentDirs)(entryPath, true);
|
|
16515
|
-
|
|
16509
|
+
const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
|
|
16516
16510
|
cliType,
|
|
16517
16511
|
lockfileVersion,
|
|
16518
16512
|
packageJsonPackageManager,
|
|
16519
|
-
env:
|
|
16513
|
+
env: process.env,
|
|
16520
16514
|
turboSupportsCorepackHome,
|
|
16521
16515
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
16522
16516
|
});
|
|
@@ -16593,14 +16587,14 @@ var build = async (buildOptions) => {
|
|
|
16593
16587
|
`Running "install" command: \`${trimmedInstallCommand}\`...`
|
|
16594
16588
|
);
|
|
16595
16589
|
await (0, import_build_utils3.execCommand)(trimmedInstallCommand, {
|
|
16596
|
-
|
|
16590
|
+
env: spawnEnv,
|
|
16597
16591
|
cwd: entryPath
|
|
16598
16592
|
});
|
|
16599
16593
|
} else {
|
|
16600
16594
|
await (0, import_build_utils3.runNpmInstall)(
|
|
16601
16595
|
entryPath,
|
|
16602
16596
|
[],
|
|
16603
|
-
|
|
16597
|
+
{ env: spawnEnv },
|
|
16604
16598
|
meta,
|
|
16605
16599
|
config.projectSettings?.createdAt
|
|
16606
16600
|
);
|
|
@@ -16609,14 +16603,14 @@ var build = async (buildOptions) => {
|
|
|
16609
16603
|
} else {
|
|
16610
16604
|
console.log(`Skipping "install" command...`);
|
|
16611
16605
|
}
|
|
16612
|
-
if (
|
|
16606
|
+
if (spawnEnv.VERCEL_ANALYTICS_ID) {
|
|
16613
16607
|
(0, import_build_utils3.debug)("Found VERCEL_ANALYTICS_ID in environment");
|
|
16614
16608
|
const version2 = await (0, import_build_utils3.getInstalledPackageVersion)(
|
|
16615
16609
|
"@vercel/speed-insights",
|
|
16616
16610
|
entryPath
|
|
16617
16611
|
);
|
|
16618
16612
|
if (version2) {
|
|
16619
|
-
delete
|
|
16613
|
+
delete spawnEnv.VERCEL_ANALYTICS_ID;
|
|
16620
16614
|
delete process.env.VERCEL_ANALYTICS_ID;
|
|
16621
16615
|
(0, import_build_utils3.debug)(
|
|
16622
16616
|
"@vercel/speed-insights is installed, removing VERCEL_ANALYTICS_ID from environment"
|
|
@@ -16666,7 +16660,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16666
16660
|
} else if (!isLegacy) {
|
|
16667
16661
|
target = await createServerlessConfig(workPath, entryPath, nextVersion);
|
|
16668
16662
|
}
|
|
16669
|
-
const env = { ...
|
|
16663
|
+
const env = { ...spawnEnv };
|
|
16670
16664
|
env.NEXT_EDGE_RUNTIME_PROVIDER = "vercel";
|
|
16671
16665
|
if (target) {
|
|
16672
16666
|
env.NEXT_PRIVATE_TARGET = target;
|
|
@@ -16699,7 +16693,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16699
16693
|
);
|
|
16700
16694
|
console.log(`Running "${buildCommand}"`);
|
|
16701
16695
|
await (0, import_build_utils3.execCommand)(buildCommand, {
|
|
16702
|
-
...spawnOpts,
|
|
16703
16696
|
cwd: entryPath,
|
|
16704
16697
|
env
|
|
16705
16698
|
});
|
|
@@ -16708,7 +16701,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16708
16701
|
entryPath,
|
|
16709
16702
|
buildScriptName,
|
|
16710
16703
|
{
|
|
16711
|
-
...spawnOpts,
|
|
16712
16704
|
env
|
|
16713
16705
|
},
|
|
16714
16706
|
config.projectSettings?.createdAt
|
|
@@ -17149,7 +17141,9 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17149
17141
|
await (0, import_build_utils3.runNpmInstall)(
|
|
17150
17142
|
entryPath,
|
|
17151
17143
|
["--production"],
|
|
17152
|
-
|
|
17144
|
+
{
|
|
17145
|
+
env: spawnEnv
|
|
17146
|
+
},
|
|
17153
17147
|
meta,
|
|
17154
17148
|
config.projectSettings?.createdAt
|
|
17155
17149
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.15",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
|
|
@@ -52,7 +52,7 @@
|
|
|
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.
|
|
55
|
+
"@vercel/build-utils": "13.2.9",
|
|
56
56
|
"@vercel/routing-utils": "5.3.2"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|