@vercel/static-build 1.0.15 → 1.0.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 +6 -15
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -18973,21 +18973,12 @@ const build = async ({ files, entrypoint, workPath, config, meta = {}, }) => {
|
|
|
18973
18973
|
}
|
|
18974
18974
|
if (framework) {
|
|
18975
18975
|
build_utils_1.debug(`Detected ${framework.name} framework. Optimizing your deployment...`);
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
.forEach(key => {
|
|
18983
|
-
const newKey = `${envPrefix}${key}`;
|
|
18984
|
-
if (!(newKey in process.env)) {
|
|
18985
|
-
process.env[newKey] = process.env[key];
|
|
18986
|
-
}
|
|
18987
|
-
});
|
|
18988
|
-
// tell turbo to exclude all vercel system env vars (envPrefix includes trailing underscore)
|
|
18989
|
-
process.env.TURBO_CI_VENDOR_ENV_KEY = `${envPrefix}${vercelSystemEnvPrefix}`;
|
|
18990
|
-
}
|
|
18976
|
+
const prefixedEnvs = build_utils_1.getPrefixedEnvVars({
|
|
18977
|
+
envPrefix: framework.envPrefix,
|
|
18978
|
+
envs: process.env,
|
|
18979
|
+
});
|
|
18980
|
+
for (const [key, value] of Object.entries(prefixedEnvs)) {
|
|
18981
|
+
process.env[key] = value;
|
|
18991
18982
|
}
|
|
18992
18983
|
if (process.env.VERCEL_ANALYTICS_ID) {
|
|
18993
18984
|
const frameworkDirectory = path_1.default.join(workPath, path_1.default.dirname(entrypoint));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@types/ms": "0.7.31",
|
|
37
37
|
"@types/node-fetch": "2.5.4",
|
|
38
38
|
"@types/promise-timeout": "1.3.0",
|
|
39
|
-
"@vercel/build-utils": "5.
|
|
40
|
-
"@vercel/frameworks": "1.1.
|
|
39
|
+
"@vercel/build-utils": "5.3.1",
|
|
40
|
+
"@vercel/frameworks": "1.1.3",
|
|
41
41
|
"@vercel/ncc": "0.24.0",
|
|
42
|
-
"@vercel/routing-utils": "2.0.
|
|
42
|
+
"@vercel/routing-utils": "2.0.2",
|
|
43
43
|
"fs-extra": "10.0.0",
|
|
44
44
|
"get-port": "5.0.0",
|
|
45
45
|
"is-port-reachable": "2.0.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"rc9": "1.2.0",
|
|
49
49
|
"typescript": "4.3.4"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "b52d01f809b80734ed1ab61df82f299f11a04720"
|
|
52
52
|
}
|