@vercel/next 4.15.12 → 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.
- package/dist/index.js +16 -12
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -16499,19 +16499,23 @@ 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
|
-
|
|
16502
|
+
const nodeVersion = await (0, import_build_utils3.getRuntimeNodeVersion)(
|
|
16503
|
+
entryPath,
|
|
16504
|
+
void 0,
|
|
16505
|
+
config,
|
|
16506
|
+
meta
|
|
16507
|
+
);
|
|
16504
16508
|
const {
|
|
16505
16509
|
cliType,
|
|
16506
16510
|
lockfileVersion,
|
|
16507
16511
|
packageJsonPackageManager,
|
|
16508
16512
|
turboSupportsCorepackHome
|
|
16509
16513
|
} = await (0, import_build_utils3.scanParentDirs)(entryPath, true);
|
|
16510
|
-
|
|
16514
|
+
const spawnEnv = (0, import_build_utils3.getEnvForPackageManager)({
|
|
16511
16515
|
cliType,
|
|
16512
16516
|
lockfileVersion,
|
|
16513
16517
|
packageJsonPackageManager,
|
|
16514
|
-
env:
|
|
16518
|
+
env: process.env,
|
|
16515
16519
|
turboSupportsCorepackHome,
|
|
16516
16520
|
projectCreatedAt: config.projectSettings?.createdAt
|
|
16517
16521
|
});
|
|
@@ -16588,14 +16592,14 @@ var build = async (buildOptions) => {
|
|
|
16588
16592
|
`Running "install" command: \`${trimmedInstallCommand}\`...`
|
|
16589
16593
|
);
|
|
16590
16594
|
await (0, import_build_utils3.execCommand)(trimmedInstallCommand, {
|
|
16591
|
-
|
|
16595
|
+
env: spawnEnv,
|
|
16592
16596
|
cwd: entryPath
|
|
16593
16597
|
});
|
|
16594
16598
|
} else {
|
|
16595
16599
|
await (0, import_build_utils3.runNpmInstall)(
|
|
16596
16600
|
entryPath,
|
|
16597
16601
|
[],
|
|
16598
|
-
|
|
16602
|
+
{ env: spawnEnv },
|
|
16599
16603
|
meta,
|
|
16600
16604
|
config.projectSettings?.createdAt
|
|
16601
16605
|
);
|
|
@@ -16604,14 +16608,14 @@ var build = async (buildOptions) => {
|
|
|
16604
16608
|
} else {
|
|
16605
16609
|
console.log(`Skipping "install" command...`);
|
|
16606
16610
|
}
|
|
16607
|
-
if (
|
|
16611
|
+
if (spawnEnv.VERCEL_ANALYTICS_ID) {
|
|
16608
16612
|
(0, import_build_utils3.debug)("Found VERCEL_ANALYTICS_ID in environment");
|
|
16609
16613
|
const version2 = await (0, import_build_utils3.getInstalledPackageVersion)(
|
|
16610
16614
|
"@vercel/speed-insights",
|
|
16611
16615
|
entryPath
|
|
16612
16616
|
);
|
|
16613
16617
|
if (version2) {
|
|
16614
|
-
delete
|
|
16618
|
+
delete spawnEnv.VERCEL_ANALYTICS_ID;
|
|
16615
16619
|
delete process.env.VERCEL_ANALYTICS_ID;
|
|
16616
16620
|
(0, import_build_utils3.debug)(
|
|
16617
16621
|
"@vercel/speed-insights is installed, removing VERCEL_ANALYTICS_ID from environment"
|
|
@@ -16661,7 +16665,7 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16661
16665
|
} else if (!isLegacy) {
|
|
16662
16666
|
target = await createServerlessConfig(workPath, entryPath, nextVersion);
|
|
16663
16667
|
}
|
|
16664
|
-
const env = { ...
|
|
16668
|
+
const env = { ...spawnEnv };
|
|
16665
16669
|
env.NEXT_EDGE_RUNTIME_PROVIDER = "vercel";
|
|
16666
16670
|
if (target) {
|
|
16667
16671
|
env.NEXT_PRIVATE_TARGET = target;
|
|
@@ -16694,7 +16698,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16694
16698
|
);
|
|
16695
16699
|
console.log(`Running "${buildCommand}"`);
|
|
16696
16700
|
await (0, import_build_utils3.execCommand)(buildCommand, {
|
|
16697
|
-
...spawnOpts,
|
|
16698
16701
|
cwd: entryPath,
|
|
16699
16702
|
env
|
|
16700
16703
|
});
|
|
@@ -16703,7 +16706,6 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
16703
16706
|
entryPath,
|
|
16704
16707
|
buildScriptName,
|
|
16705
16708
|
{
|
|
16706
|
-
...spawnOpts,
|
|
16707
16709
|
env
|
|
16708
16710
|
},
|
|
16709
16711
|
config.projectSettings?.createdAt
|
|
@@ -17144,7 +17146,9 @@ More info: http://err.sh/vercel/vercel/next-functions-config-optimized-lambdas`
|
|
|
17144
17146
|
await (0, import_build_utils3.runNpmInstall)(
|
|
17145
17147
|
entryPath,
|
|
17146
17148
|
["--production"],
|
|
17147
|
-
|
|
17149
|
+
{
|
|
17150
|
+
env: spawnEnv
|
|
17151
|
+
},
|
|
17148
17152
|
meta,
|
|
17149
17153
|
config.projectSettings?.createdAt
|
|
17150
17154
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/next",
|
|
3
|
-
"version": "4.15.
|
|
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/
|
|
56
|
-
"@vercel/
|
|
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",
|