vercel 51.6.1 → 51.7.0
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/chunks/{add-JALB3DKU.js → add-HLIPDOM3.js} +7 -7
- package/dist/chunks/{chunk-MUJZV257.js → chunk-5QNVUXGF.js} +6 -6
- package/dist/chunks/{chunk-U73MZTAR.js → chunk-6GTUL6VG.js} +3 -3
- package/dist/chunks/{chunk-DAOAZ2VQ.js → chunk-BHDZCUTT.js} +1 -1
- package/dist/chunks/{chunk-PVZBM6NU.js → chunk-BJQTGP42.js} +1 -1
- package/dist/chunks/{chunk-553A6UFX.js → chunk-BO7LOGQA.js} +6 -6
- package/dist/chunks/{chunk-Z66S4G43.js → chunk-BXSWMI6W.js} +1 -1
- package/dist/chunks/{chunk-DED5G3HZ.js → chunk-CRZM5WM2.js} +1 -1
- package/dist/chunks/{chunk-LUCCJW67.js → chunk-DVQ4SIWF.js} +1 -1
- package/dist/chunks/{chunk-DF4AVQY3.js → chunk-G6RXZLQ2.js} +2 -2
- package/dist/chunks/{chunk-WCTFUOSJ.js → chunk-GE6G37P4.js} +1 -1
- package/dist/chunks/{chunk-FY3TMBQS.js → chunk-HYAMHBSF.js} +1 -1
- package/dist/chunks/{chunk-RW7LIX2Y.js → chunk-IDDYXD6T.js} +2 -2
- package/dist/chunks/{chunk-3N3AYMMW.js → chunk-IS75MWZN.js} +30 -17
- package/dist/chunks/{chunk-QFP6FEBN.js → chunk-L7AFYPER.js} +1 -1
- package/dist/chunks/{chunk-C7UTFMYF.js → chunk-LDXYSGPZ.js} +2 -2
- package/dist/chunks/{chunk-LUJPLXGG.js → chunk-LGSOFQRC.js} +2 -2
- package/dist/chunks/{chunk-34IM6J7A.js → chunk-LKIVGPRE.js} +2 -2
- package/dist/chunks/{chunk-UG4457SI.js → chunk-LOUKPRIS.js} +60 -54
- package/dist/chunks/{chunk-HUPHOH2F.js → chunk-QLO5NXAS.js} +1 -1
- package/dist/chunks/{chunk-WYRFA4PX.js → chunk-QO6J4DC7.js} +2 -2
- package/dist/chunks/{chunk-4X7GBE5B.js → chunk-QZ3UQIL3.js} +23 -23
- package/dist/chunks/{chunk-VDM5O3P6.js → chunk-RFMC2QXQ.js} +3 -3
- package/dist/chunks/{chunk-5KFTN63Q.js → chunk-T74PTRRA.js} +4 -4
- package/dist/chunks/{chunk-7L4XVUFK.js → chunk-TAOVG4PS.js} +2 -2
- package/dist/chunks/{chunk-XLKXWNRG.js → chunk-UWKTUK3W.js} +1 -1
- package/dist/chunks/{chunk-MGJMZIIT.js → chunk-V766LKN6.js} +1 -1
- package/dist/chunks/{chunk-MCTAPJSL.js → chunk-VGWGLBUC.js} +1 -1
- package/dist/chunks/{chunk-CHUU7VXC.js → chunk-VNDSVCGB.js} +75 -68
- package/dist/chunks/{chunk-BBW6EGBQ.js → chunk-WKRF7JKF.js} +1 -1
- package/dist/chunks/{chunk-CGTXAXZ4.js → chunk-XKHLPA6V.js} +3 -1
- package/dist/chunks/{chunk-QHXUBID6.js → chunk-YDCXNOCS.js} +3 -3
- package/dist/chunks/{chunk-FH2OHGXG.js → chunk-YKYISUXV.js} +3 -3
- package/dist/chunks/{compile-vercel-config-V2SHBZFW.js → compile-vercel-config-U4OJGTLE.js} +3 -3
- package/dist/chunks/{delete-5RI2PRIT.js → delete-H2OF5N72.js} +5 -5
- package/dist/chunks/{disable-JPKO7VCV.js → disable-Z4ENND33.js} +5 -5
- package/dist/chunks/{discard-KXGXXDNX.js → discard-UQGHXIL4.js} +5 -5
- package/dist/chunks/{edit-VFUE5PVU.js → edit-UFYK3Z3T.js} +6 -6
- package/dist/chunks/{enable-V2AX2FXX.js → enable-2MEB4O5O.js} +5 -5
- package/dist/chunks/{export-BG3TOT6G.js → export-T5VEXLYZ.js} +5 -5
- package/dist/chunks/{inspect-3QVCZVKV.js → inspect-7CDEJF2U.js} +7 -7
- package/dist/chunks/{list-Y2YMJWEY.js → list-LTDGGY5C.js} +5 -5
- package/dist/chunks/{list-CWTYXKB5.js → list-MKMRMDWW.js} +8 -8
- package/dist/chunks/{ls-SY2CP56I.js → ls-GRDKWPVP.js} +7 -7
- package/dist/chunks/{publish-75IJ4PZS.js → publish-SMAXMKKV.js} +5 -5
- package/dist/chunks/{query-MLMGNGL2.js → query-WGX6PLTN.js} +6 -6
- package/dist/chunks/{reorder-757V4BF5.js → reorder-SQ52RGDY.js} +5 -5
- package/dist/chunks/{restore-KV44XHFS.js → restore-P6RHBBEG.js} +5 -5
- package/dist/chunks/{rm-3EGKFLKW.js → rm-EDOGYDVM.js} +7 -7
- package/dist/chunks/{rule-inspect-AYUGCLVJ.js → rule-inspect-GW54LGXF.js} +7 -7
- package/dist/chunks/{rules-FUFDJOIP.js → rules-MCUCN322.js} +7 -7
- package/dist/chunks/{schema-CI2XUYTW.js → schema-CZ7B2GTS.js} +7 -7
- package/dist/chunks/{types-M7LVCA3E.js → types-QNN5CDCB.js} +3 -3
- package/dist/chunks/{update-6EM4XIDW.js → update-QHI4MJ6N.js} +7 -7
- package/dist/commands/build/index.js +24 -15
- package/dist/commands/deploy/index.js +21 -21
- package/dist/commands/dev/index.js +35 -29
- package/dist/commands/env/index.js +17 -17
- package/dist/commands/link/index.js +17 -17
- package/dist/commands/list/index.js +8 -8
- package/dist/commands-bulk.js +215 -115
- package/dist/index.js +20 -20
- package/dist/version.mjs +1 -1
- package/package.json +16 -16
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getPreservedArgsForEnvPull,
|
|
15
15
|
outputActionRequired,
|
|
16
16
|
outputAgentError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XKHLPA6V.js";
|
|
18
18
|
import {
|
|
19
19
|
require_ms,
|
|
20
20
|
stamp_default
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_string_width,
|
|
30
30
|
require_strip_ansi,
|
|
31
31
|
yesOption
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RFMC2QXQ.js";
|
|
33
33
|
import {
|
|
34
34
|
APIError,
|
|
35
35
|
CantParseJSONFile,
|
|
@@ -7995,7 +7995,7 @@ var require_jsonfile = __commonJS({
|
|
|
7995
7995
|
}
|
|
7996
7996
|
return obj;
|
|
7997
7997
|
}
|
|
7998
|
-
var
|
|
7998
|
+
var readFile6 = universalify.fromPromise(_readFile);
|
|
7999
7999
|
function readFileSync(file, options = {}) {
|
|
8000
8000
|
if (typeof options === "string") {
|
|
8001
8001
|
options = { encoding: options };
|
|
@@ -8027,7 +8027,7 @@ var require_jsonfile = __commonJS({
|
|
|
8027
8027
|
return fs5.writeFileSync(file, str, options);
|
|
8028
8028
|
}
|
|
8029
8029
|
var jsonfile = {
|
|
8030
|
-
readFile:
|
|
8030
|
+
readFile: readFile6,
|
|
8031
8031
|
readFileSync,
|
|
8032
8032
|
writeFile: writeFile5,
|
|
8033
8033
|
writeFileSync
|
|
@@ -13987,13 +13987,13 @@ var require_read_config_file = __commonJS({
|
|
|
13987
13987
|
});
|
|
13988
13988
|
module.exports = __toCommonJS2(read_config_file_exports);
|
|
13989
13989
|
var import_js_yaml = __toESM2(require_js_yaml2());
|
|
13990
|
-
var
|
|
13990
|
+
var import_smol_toml3 = __require("smol-toml");
|
|
13991
13991
|
var import_fs4 = __require("fs");
|
|
13992
13992
|
var import_error_utils5 = require_dist();
|
|
13993
|
-
var { readFile:
|
|
13993
|
+
var { readFile: readFile6 } = import_fs4.promises;
|
|
13994
13994
|
async function readFileOrNull(file) {
|
|
13995
13995
|
try {
|
|
13996
|
-
const data = await
|
|
13996
|
+
const data = await readFile6(file);
|
|
13997
13997
|
return data;
|
|
13998
13998
|
} catch (error) {
|
|
13999
13999
|
if (!(0, import_error_utils5.isErrnoException)(error)) {
|
|
@@ -14014,7 +14014,7 @@ var require_read_config_file = __commonJS({
|
|
|
14014
14014
|
if (name.endsWith(".json")) {
|
|
14015
14015
|
return JSON.parse(str);
|
|
14016
14016
|
} else if (name.endsWith(".toml")) {
|
|
14017
|
-
return (0,
|
|
14017
|
+
return (0, import_smol_toml3.parse)(str);
|
|
14018
14018
|
} else if (name.endsWith(".yaml") || name.endsWith(".yml")) {
|
|
14019
14019
|
return import_js_yaml.default.safeLoad(str, { filename: name });
|
|
14020
14020
|
}
|
|
@@ -14080,7 +14080,7 @@ var require_frameworks = __commonJS({
|
|
|
14080
14080
|
var import_fs4 = __require("fs");
|
|
14081
14081
|
var import_read_config_file = require_read_config_file();
|
|
14082
14082
|
__reExport(frameworks_exports, require_types(), module.exports);
|
|
14083
|
-
var { readdir, readFile:
|
|
14083
|
+
var { readdir, readFile: readFile6, unlink: unlink2 } = import_fs4.promises;
|
|
14084
14084
|
var frameworks = [
|
|
14085
14085
|
{
|
|
14086
14086
|
name: "Blitz.js (Legacy)",
|
|
@@ -14208,7 +14208,7 @@ var require_frameworks = __commonJS({
|
|
|
14208
14208
|
"public",
|
|
14209
14209
|
"__now_routes_g4t5bY.json"
|
|
14210
14210
|
);
|
|
14211
|
-
const content = await
|
|
14211
|
+
const content = await readFile6(nowRoutesPath, "utf8");
|
|
14212
14212
|
const nowRoutes = JSON.parse(content);
|
|
14213
14213
|
try {
|
|
14214
14214
|
await unlink2(nowRoutesPath);
|
|
@@ -23019,9 +23019,9 @@ var require_utils3 = __commonJS({
|
|
|
23019
23019
|
const hasVercelToml = process.env.VERCEL_TOML_CONFIG_ENABLED === "1" && await fs5.hasPath("vercel.toml");
|
|
23020
23020
|
if (hasVercelToml) {
|
|
23021
23021
|
try {
|
|
23022
|
-
const { parse:
|
|
23022
|
+
const { parse: tomlParse3 } = await import("smol-toml");
|
|
23023
23023
|
const content = await fs5.readFile("vercel.toml");
|
|
23024
|
-
const config =
|
|
23024
|
+
const config = tomlParse3(content.toString());
|
|
23025
23025
|
return { config, error: null };
|
|
23026
23026
|
} catch {
|
|
23027
23027
|
return {
|
|
@@ -23815,7 +23815,6 @@ var require_resolve2 = __commonJS({
|
|
|
23815
23815
|
}
|
|
23816
23816
|
}
|
|
23817
23817
|
const topics = type === "worker" ? (0, import_build_utils5.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : void 0;
|
|
23818
|
-
const consumer = type === "worker" ? config.consumer || "default" : config.consumer;
|
|
23819
23818
|
let builderUse;
|
|
23820
23819
|
let builderSrc;
|
|
23821
23820
|
const frameworkDefinition = config.framework ? frameworksBySlug.get(config.framework) : void 0;
|
|
@@ -23899,7 +23898,6 @@ var require_resolve2 = __commonJS({
|
|
|
23899
23898
|
schedule: config.schedule,
|
|
23900
23899
|
handlerFunction: moduleAttrParsed?.attrName,
|
|
23901
23900
|
topics,
|
|
23902
|
-
consumer,
|
|
23903
23901
|
envPrefix: config.envPrefix
|
|
23904
23902
|
};
|
|
23905
23903
|
}
|
|
@@ -24312,7 +24310,7 @@ var require_detect_railway = __commonJS({
|
|
|
24312
24310
|
});
|
|
24313
24311
|
module.exports = __toCommonJS2(detect_railway_exports);
|
|
24314
24312
|
var import_path12 = __require("path");
|
|
24315
|
-
var
|
|
24313
|
+
var import_smol_toml3 = __toESM2(__require("smol-toml"));
|
|
24316
24314
|
var import_frameworks2 = require_frameworks();
|
|
24317
24315
|
var import_detect_framework = require_detect_framework();
|
|
24318
24316
|
var import_utils4 = require_utils3();
|
|
@@ -24491,7 +24489,7 @@ var require_detect_railway = __commonJS({
|
|
|
24491
24489
|
return { config: null };
|
|
24492
24490
|
}
|
|
24493
24491
|
try {
|
|
24494
|
-
const config = raw.path.endsWith(".toml") ?
|
|
24492
|
+
const config = raw.path.endsWith(".toml") ? import_smol_toml3.default.parse(raw.content) : JSON.parse(raw.content);
|
|
24495
24493
|
return { config };
|
|
24496
24494
|
} catch (err) {
|
|
24497
24495
|
return {
|
|
@@ -24809,20 +24807,6 @@ var require_detect_services = __commonJS({
|
|
|
24809
24807
|
}
|
|
24810
24808
|
}
|
|
24811
24809
|
}
|
|
24812
|
-
const workerServices = services.filter(import_build_utils5.isQueueTriggeredService);
|
|
24813
|
-
for (const service of workerServices) {
|
|
24814
|
-
const workerEntrypoint = service.entrypoint || service.builder.src || "index";
|
|
24815
|
-
const workerPath = (0, import_utils4.getInternalServiceWorkerPath)(
|
|
24816
|
-
service.name,
|
|
24817
|
-
workerEntrypoint
|
|
24818
|
-
);
|
|
24819
|
-
const functionPath = (0, import_utils4.getInternalServiceFunctionPath)(service.name);
|
|
24820
|
-
workers.push({
|
|
24821
|
-
src: `^${escapeRegex(workerPath)}$`,
|
|
24822
|
-
dest: functionPath,
|
|
24823
|
-
check: true
|
|
24824
|
-
});
|
|
24825
|
-
}
|
|
24826
24810
|
const cronServices = services.filter(import_build_utils5.isScheduleTriggeredService);
|
|
24827
24811
|
for (const service of cronServices) {
|
|
24828
24812
|
const cronPrefix = (0, import_utils4.getInternalServiceCronPathPrefix)(service.name);
|
|
@@ -35111,7 +35095,7 @@ var require_jsonfile3 = __commonJS({
|
|
|
35111
35095
|
} catch (_) {
|
|
35112
35096
|
_fs = __require("fs");
|
|
35113
35097
|
}
|
|
35114
|
-
function
|
|
35098
|
+
function readFile6(file, options, callback) {
|
|
35115
35099
|
if (callback == null) {
|
|
35116
35100
|
callback = options;
|
|
35117
35101
|
options = {};
|
|
@@ -35210,7 +35194,7 @@ var require_jsonfile3 = __commonJS({
|
|
|
35210
35194
|
return content;
|
|
35211
35195
|
}
|
|
35212
35196
|
var jsonfile = {
|
|
35213
|
-
readFile:
|
|
35197
|
+
readFile: readFile6,
|
|
35214
35198
|
readFileSync,
|
|
35215
35199
|
writeFile: writeFile5,
|
|
35216
35200
|
writeFileSync
|
|
@@ -39153,7 +39137,7 @@ var require_package = __commonJS({
|
|
|
39153
39137
|
"../client/package.json"(exports, module) {
|
|
39154
39138
|
module.exports = {
|
|
39155
39139
|
name: "@vercel/client",
|
|
39156
|
-
version: "17.3.
|
|
39140
|
+
version: "17.3.8",
|
|
39157
39141
|
main: "dist/index.js",
|
|
39158
39142
|
typings: "dist/index.d.ts",
|
|
39159
39143
|
homepage: "https://vercel.com",
|
|
@@ -52660,10 +52644,10 @@ var require_dist7 = __commonJS({
|
|
|
52660
52644
|
|
|
52661
52645
|
// src/util/compile-vercel-config.ts
|
|
52662
52646
|
var import_dotenv = __toESM(require_main(), 1);
|
|
52663
|
-
import { mkdir, readFile as
|
|
52647
|
+
import { mkdir, readFile as readFile5, writeFile as writeFile4, unlink, access } from "fs/promises";
|
|
52664
52648
|
import { join as join9, basename as basename3 } from "path";
|
|
52665
52649
|
import { fork } from "child_process";
|
|
52666
|
-
import { parse as
|
|
52650
|
+
import { parse as tomlParse2 } from "smol-toml";
|
|
52667
52651
|
|
|
52668
52652
|
// src/util/projects/link.ts
|
|
52669
52653
|
var import_ajv2 = __toESM(require_ajv(), 1);
|
|
@@ -55973,8 +55957,14 @@ import { join as join7, dirname } from "path";
|
|
|
55973
55957
|
|
|
55974
55958
|
// src/util/projects/detect-services.ts
|
|
55975
55959
|
var import_fs_detectors2 = __toESM(require_dist6(), 1);
|
|
55976
|
-
import { writeFile as writeFile2 } from "fs/promises";
|
|
55960
|
+
import { readFile as readFile3, writeFile as writeFile2 } from "fs/promises";
|
|
55977
55961
|
import { basename as basename2, join as join6 } from "path";
|
|
55962
|
+
import { parse as tomlParse, stringify as tomlStringify } from "smol-toml";
|
|
55963
|
+
|
|
55964
|
+
// src/util/is-vercel-toml-enabled.ts
|
|
55965
|
+
function isVercelTomlEnabled() {
|
|
55966
|
+
return process.env.VERCEL_TOML_CONFIG_ENABLED === "1";
|
|
55967
|
+
}
|
|
55978
55968
|
|
|
55979
55969
|
// src/util/read-json-file.ts
|
|
55980
55970
|
var import_fs_extra6 = __toESM(require_lib2(), 1);
|
|
@@ -56482,11 +56472,6 @@ function validateConfig(config) {
|
|
|
56482
56472
|
return null;
|
|
56483
56473
|
}
|
|
56484
56474
|
|
|
56485
|
-
// src/util/is-vercel-toml-enabled.ts
|
|
56486
|
-
function isVercelTomlEnabled() {
|
|
56487
|
-
return process.env.VERCEL_TOML_CONFIG_ENABLED === "1";
|
|
56488
|
-
}
|
|
56489
|
-
|
|
56490
56475
|
// src/util/projects/detect-services.ts
|
|
56491
56476
|
async function isExperimentalServicesEnabled(cwd) {
|
|
56492
56477
|
return process.env.VERCEL_USE_EXPERIMENTAL_SERVICES === "1" || process.env.VERCEL_USE_EXPERIMENTAL_SERVICES?.toLowerCase() === "true" || await hasExperimentalServicesConfig(cwd);
|
|
@@ -56523,11 +56508,8 @@ async function tryDetectServices(cwd) {
|
|
|
56523
56508
|
}
|
|
56524
56509
|
async function writeServicesConfig(cwd, config) {
|
|
56525
56510
|
const prepared = await prepareServicesConfigWrite(cwd, config);
|
|
56526
|
-
await writeFile2(
|
|
56527
|
-
|
|
56528
|
-
JSON.stringify(prepared.config, null, 2) + "\n",
|
|
56529
|
-
"utf8"
|
|
56530
|
-
);
|
|
56511
|
+
await writeFile2(prepared.configPath, prepared.content, "utf8");
|
|
56512
|
+
return { configFileName: basename2(prepared.configPath) };
|
|
56531
56513
|
}
|
|
56532
56514
|
async function getServicesConfigWriteBlocker(cwd, config) {
|
|
56533
56515
|
try {
|
|
@@ -56545,6 +56527,9 @@ function toProjectServicesConfigPatch(config) {
|
|
|
56545
56527
|
async function prepareServicesConfigWrite(cwd, config) {
|
|
56546
56528
|
const compileResult = await compileVercelConfig(cwd);
|
|
56547
56529
|
const configPath = join6(cwd, "vercel.json");
|
|
56530
|
+
if (isVercelTomlEnabled() && compileResult.sourceFile === "vercel.toml") {
|
|
56531
|
+
return prepareTomlServicesConfigWrite(join6(cwd, "vercel.toml"), config);
|
|
56532
|
+
}
|
|
56548
56533
|
if (compileResult.wasCompiled) {
|
|
56549
56534
|
throw new Error(
|
|
56550
56535
|
`Cannot automatically update ${compileResult.sourceFile ?? "the current Vercel config"}.`
|
|
@@ -56553,9 +56538,6 @@ async function prepareServicesConfigWrite(cwd, config) {
|
|
|
56553
56538
|
if (compileResult.configPath && basename2(compileResult.configPath) === "now.json") {
|
|
56554
56539
|
throw new Error("Cannot automatically update now.json.");
|
|
56555
56540
|
}
|
|
56556
|
-
if (isVercelTomlEnabled() && compileResult.configPath && basename2(compileResult.configPath) === "vercel.toml") {
|
|
56557
|
-
throw new Error("Cannot automatically update vercel.toml.");
|
|
56558
|
-
}
|
|
56559
56541
|
let existingConfig = {};
|
|
56560
56542
|
if (compileResult.configPath && basename2(compileResult.configPath) === "vercel.json") {
|
|
56561
56543
|
const result = await readJSONFile(configPath);
|
|
@@ -56574,9 +56556,33 @@ async function prepareServicesConfigWrite(cwd, config) {
|
|
|
56574
56556
|
}
|
|
56575
56557
|
return {
|
|
56576
56558
|
configPath,
|
|
56577
|
-
|
|
56559
|
+
content: JSON.stringify(nextConfig, null, 2) + "\n"
|
|
56578
56560
|
};
|
|
56579
56561
|
}
|
|
56562
|
+
async function prepareTomlServicesConfigWrite(configPath, config) {
|
|
56563
|
+
const patch = toProjectServicesConfigPatch(config);
|
|
56564
|
+
const patchKeys = Object.keys(patch);
|
|
56565
|
+
let existingContent;
|
|
56566
|
+
try {
|
|
56567
|
+
existingContent = await readFile3(configPath, "utf8");
|
|
56568
|
+
} catch {
|
|
56569
|
+
existingContent = "";
|
|
56570
|
+
}
|
|
56571
|
+
if (existingContent.trim()) {
|
|
56572
|
+
const existingParsed = tomlParse(existingContent);
|
|
56573
|
+
const overlapping = patchKeys.filter((key) => key in existingParsed);
|
|
56574
|
+
if (overlapping.length > 0) {
|
|
56575
|
+
const plural = overlapping.length > 1;
|
|
56576
|
+
const keyList = overlapping.map((k) => `"${k}"`).join(", ");
|
|
56577
|
+
throw new Error(
|
|
56578
|
+
`Cannot automatically update vercel.toml: key${plural ? "s" : ""} ${keyList} already exist${plural ? "" : "s"}.`
|
|
56579
|
+
);
|
|
56580
|
+
}
|
|
56581
|
+
}
|
|
56582
|
+
const patchToml = tomlStringify(patch);
|
|
56583
|
+
const content = existingContent.trim() ? existingContent.trimEnd() + "\n\n" + patchToml + "\n" : patchToml + "\n";
|
|
56584
|
+
return { configPath, content };
|
|
56585
|
+
}
|
|
56580
56586
|
function getServicesConfigWriteBlockerFromError(error) {
|
|
56581
56587
|
switch (error?.code) {
|
|
56582
56588
|
case "SERVICES_AND_BUILDS":
|
|
@@ -56633,7 +56639,7 @@ async function resolveProjectCwd(cwd) {
|
|
|
56633
56639
|
}
|
|
56634
56640
|
|
|
56635
56641
|
// src/util/projects/link.ts
|
|
56636
|
-
var
|
|
56642
|
+
var readFile4 = promisify(fs4.readFile);
|
|
56637
56643
|
var writeFile3 = promisify(fs4.writeFile);
|
|
56638
56644
|
var VERCEL_DIR = ".vercel";
|
|
56639
56645
|
var VERCEL_DIR_FALLBACK = ".now";
|
|
@@ -56735,7 +56741,7 @@ async function getProjectLinkFromRepoLink(client, path2, projectName) {
|
|
|
56735
56741
|
}
|
|
56736
56742
|
async function getLinkFromDir(dir) {
|
|
56737
56743
|
try {
|
|
56738
|
-
const json = await
|
|
56744
|
+
const json = await readFile4(join8(dir, VERCEL_DIR_PROJECT), "utf8");
|
|
56739
56745
|
const ajv2 = new import_ajv2.default();
|
|
56740
56746
|
const link = JSON.parse(json);
|
|
56741
56747
|
if (!ajv2.validate(linkSchema, link)) {
|
|
@@ -57159,8 +57165,8 @@ async function compileVercelConfig(workPath) {
|
|
|
57159
57165
|
}
|
|
57160
57166
|
if (hasVercelToml) {
|
|
57161
57167
|
try {
|
|
57162
|
-
const tomlContent = await
|
|
57163
|
-
const config =
|
|
57168
|
+
const tomlContent = await readFile5(vercelTomlPath, "utf8");
|
|
57169
|
+
const config = tomlParse2(tomlContent);
|
|
57164
57170
|
const normalizedConfig = normalizeConfig(config);
|
|
57165
57171
|
await mkdir(vercelDir, { recursive: true });
|
|
57166
57172
|
await writeFile4(
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
getEnvTargetPlaceholder,
|
|
12
12
|
global_path_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LOUKPRIS.js";
|
|
14
14
|
import {
|
|
15
15
|
yesOption
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RFMC2QXQ.js";
|
|
17
17
|
import {
|
|
18
18
|
packageName
|
|
19
19
|
} from "./chunk-ECRBC4HL.js";
|
|
@@ -6,29 +6,29 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
routesCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CRZM5WM2.js";
|
|
10
10
|
import {
|
|
11
11
|
metricsCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BHDZCUTT.js";
|
|
13
13
|
import {
|
|
14
14
|
devCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BJQTGP42.js";
|
|
16
16
|
import {
|
|
17
17
|
activityCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UWKTUK3W.js";
|
|
19
19
|
import {
|
|
20
20
|
alertsCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TAOVG4PS.js";
|
|
22
22
|
import {
|
|
23
23
|
listCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VGWGLBUC.js";
|
|
25
25
|
import {
|
|
26
26
|
buildCommand,
|
|
27
27
|
pullCommand
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QO6J4DC7.js";
|
|
29
29
|
import {
|
|
30
30
|
envCommand
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LOUKPRIS.js";
|
|
32
32
|
import {
|
|
33
33
|
confirmOption,
|
|
34
34
|
forceOption,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
limitOption,
|
|
38
38
|
nextOption,
|
|
39
39
|
yesOption
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-RFMC2QXQ.js";
|
|
41
41
|
import {
|
|
42
42
|
packageName
|
|
43
43
|
} from "./chunk-ECRBC4HL.js";
|
|
@@ -2234,7 +2234,7 @@ var systemBypassListSubcommand = {
|
|
|
2234
2234
|
var systemBypassAddSubcommand = {
|
|
2235
2235
|
name: "add",
|
|
2236
2236
|
aliases: [],
|
|
2237
|
-
description: "Add a system bypass rule to allow a specific IP address to skip firewall checks",
|
|
2237
|
+
description: "Add a system bypass rule to allow a specific IP address to skip firewall checks. Takes effect immediately (no publish required)",
|
|
2238
2238
|
arguments: [{ name: "ip", required: true }],
|
|
2239
2239
|
options: [
|
|
2240
2240
|
{
|
|
@@ -2267,7 +2267,7 @@ var systemBypassAddSubcommand = {
|
|
|
2267
2267
|
var systemBypassRemoveSubcommand = {
|
|
2268
2268
|
name: "remove",
|
|
2269
2269
|
aliases: ["rm"],
|
|
2270
|
-
description: "Remove a system bypass rule so the IP is no longer exempt from firewall checks",
|
|
2270
|
+
description: "Remove a system bypass rule so the IP is no longer exempt from firewall checks. Takes effect immediately (no publish required)",
|
|
2271
2271
|
arguments: [{ name: "ip", required: true }],
|
|
2272
2272
|
options: [
|
|
2273
2273
|
{
|
|
@@ -2336,7 +2336,7 @@ var ipBlocksListSubcommand = {
|
|
|
2336
2336
|
var ipBlocksBlockSubcommand = {
|
|
2337
2337
|
name: "block",
|
|
2338
2338
|
aliases: [],
|
|
2339
|
-
description: "Block an IP address or CIDR range from accessing your project",
|
|
2339
|
+
description: "Block an IP address or CIDR range from accessing your project. Stages a draft change \u2014 run `publish` to make it live",
|
|
2340
2340
|
arguments: [{ name: "ip", required: true }],
|
|
2341
2341
|
options: [
|
|
2342
2342
|
{
|
|
@@ -2373,7 +2373,7 @@ var ipBlocksBlockSubcommand = {
|
|
|
2373
2373
|
var ipBlocksUnblockSubcommand = {
|
|
2374
2374
|
name: "unblock",
|
|
2375
2375
|
aliases: ["rm"],
|
|
2376
|
-
description: "Remove an IP blocking rule to allow the address to access your project again",
|
|
2376
|
+
description: "Remove an IP blocking rule to allow the address to access your project again. Stages a draft change \u2014 run `publish` to make it live",
|
|
2377
2377
|
arguments: [{ name: "id-or-ip", required: true }],
|
|
2378
2378
|
options: [
|
|
2379
2379
|
{
|
|
@@ -2486,7 +2486,7 @@ var rulesInspectSubcommand = {
|
|
|
2486
2486
|
var rulesAddSubcommand = {
|
|
2487
2487
|
name: "add",
|
|
2488
2488
|
aliases: [],
|
|
2489
|
-
description: "Create a new custom firewall rule using AI, an interactive builder, JSON, or command-line flags",
|
|
2489
|
+
description: "Create a new custom firewall rule using AI, an interactive builder, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
|
|
2490
2490
|
arguments: [{ name: "name", required: false }],
|
|
2491
2491
|
options: [
|
|
2492
2492
|
{
|
|
@@ -2622,7 +2622,7 @@ var rulesAddSubcommand = {
|
|
|
2622
2622
|
var rulesEditSubcommand = {
|
|
2623
2623
|
name: "edit",
|
|
2624
2624
|
aliases: [],
|
|
2625
|
-
description: "Edit an existing custom firewall rule using AI, an interactive editor, JSON, or command-line flags",
|
|
2625
|
+
description: "Edit an existing custom firewall rule using AI, an interactive editor, JSON, or command-line flags. Stages a draft change \u2014 run `publish` to make it live",
|
|
2626
2626
|
arguments: [{ name: "name-or-id", required: true }],
|
|
2627
2627
|
options: [
|
|
2628
2628
|
{
|
|
@@ -2772,7 +2772,7 @@ var rulesEditSubcommand = {
|
|
|
2772
2772
|
var rulesEnableSubcommand = {
|
|
2773
2773
|
name: "enable",
|
|
2774
2774
|
aliases: [],
|
|
2775
|
-
description: "Enable a disabled custom firewall rule",
|
|
2775
|
+
description: "Enable a disabled custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
|
|
2776
2776
|
arguments: [{ name: "name-or-id", required: true }],
|
|
2777
2777
|
options: [yesOption],
|
|
2778
2778
|
examples: [
|
|
@@ -2785,7 +2785,7 @@ var rulesEnableSubcommand = {
|
|
|
2785
2785
|
var rulesDisableSubcommand = {
|
|
2786
2786
|
name: "disable",
|
|
2787
2787
|
aliases: [],
|
|
2788
|
-
description: "Disable a custom firewall rule without removing it",
|
|
2788
|
+
description: "Disable a custom firewall rule without removing it. Stages a draft change \u2014 run `publish` to make it live",
|
|
2789
2789
|
arguments: [{ name: "name-or-id", required: true }],
|
|
2790
2790
|
options: [yesOption],
|
|
2791
2791
|
examples: [
|
|
@@ -2798,7 +2798,7 @@ var rulesDisableSubcommand = {
|
|
|
2798
2798
|
var rulesRemoveSubcommand = {
|
|
2799
2799
|
name: "remove",
|
|
2800
2800
|
aliases: ["rm", "delete"],
|
|
2801
|
-
description: "Remove a custom firewall rule",
|
|
2801
|
+
description: "Remove a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
|
|
2802
2802
|
arguments: [{ name: "name-or-id", required: true }],
|
|
2803
2803
|
options: [yesOption],
|
|
2804
2804
|
examples: [
|
|
@@ -2811,7 +2811,7 @@ var rulesRemoveSubcommand = {
|
|
|
2811
2811
|
var rulesReorderSubcommand = {
|
|
2812
2812
|
name: "reorder",
|
|
2813
2813
|
aliases: ["move"],
|
|
2814
|
-
description: "Change the priority order of a custom firewall rule",
|
|
2814
|
+
description: "Change the priority order of a custom firewall rule. Stages a draft change \u2014 run `publish` to make it live",
|
|
2815
2815
|
arguments: [{ name: "name-or-id", required: true }],
|
|
2816
2816
|
options: [
|
|
2817
2817
|
{
|
|
@@ -2886,7 +2886,7 @@ var rulesSubcommand = {
|
|
|
2886
2886
|
var attackModeEnableSubcommand = {
|
|
2887
2887
|
name: "enable",
|
|
2888
2888
|
aliases: [],
|
|
2889
|
-
description: "Enable attack mode \u2014 all visitors will be shown a verification challenge before accessing your site",
|
|
2889
|
+
description: "Enable attack mode \u2014 all visitors will be shown a verification challenge before accessing your site. Takes effect immediately (no publish required)",
|
|
2890
2890
|
arguments: [],
|
|
2891
2891
|
options: [
|
|
2892
2892
|
{
|
|
@@ -2912,7 +2912,7 @@ var attackModeEnableSubcommand = {
|
|
|
2912
2912
|
var attackModeDisableSubcommand = {
|
|
2913
2913
|
name: "disable",
|
|
2914
2914
|
aliases: [],
|
|
2915
|
-
description: "Disable attack mode \u2014 visitors will no longer be challenged",
|
|
2915
|
+
description: "Disable attack mode \u2014 visitors will no longer be challenged. Takes effect immediately (no publish required)",
|
|
2916
2916
|
arguments: [],
|
|
2917
2917
|
options: [yesOption],
|
|
2918
2918
|
examples: [
|
|
@@ -2943,7 +2943,7 @@ var attackModeSubcommand = {
|
|
|
2943
2943
|
var systemMitigationsPauseSubcommand = {
|
|
2944
2944
|
name: "pause",
|
|
2945
2945
|
aliases: [],
|
|
2946
|
-
description: "Pause automatic DDoS protection and system-level traffic filtering for 24 hours",
|
|
2946
|
+
description: "Pause automatic DDoS protection and system-level traffic filtering for 24 hours. Takes effect immediately (no publish required)",
|
|
2947
2947
|
arguments: [],
|
|
2948
2948
|
options: [yesOption],
|
|
2949
2949
|
examples: [
|
|
@@ -2956,7 +2956,7 @@ var systemMitigationsPauseSubcommand = {
|
|
|
2956
2956
|
var systemMitigationsResumeSubcommand = {
|
|
2957
2957
|
name: "resume",
|
|
2958
2958
|
aliases: [],
|
|
2959
|
-
description: "Resume automatic DDoS protection and system-level traffic filtering",
|
|
2959
|
+
description: "Resume automatic DDoS protection and system-level traffic filtering. Takes effect immediately (no publish required)",
|
|
2960
2960
|
arguments: [],
|
|
2961
2961
|
options: [yesOption],
|
|
2962
2962
|
examples: [
|
|
@@ -594,9 +594,9 @@ export {
|
|
|
594
594
|
getCommandNameWithGlobalFlags,
|
|
595
595
|
getArgs,
|
|
596
596
|
parseArguments,
|
|
597
|
+
require_strip_ansi,
|
|
598
|
+
require_string_width,
|
|
597
599
|
responseError,
|
|
598
600
|
toEnumerableError,
|
|
599
|
-
printError
|
|
600
|
-
require_strip_ansi,
|
|
601
|
-
require_string_width
|
|
601
|
+
printError
|
|
602
602
|
};
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-4PQA6H63.js";
|
|
13
13
|
import {
|
|
14
14
|
getLocalPathConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LGSOFQRC.js";
|
|
16
16
|
import {
|
|
17
17
|
autoInstallVercelPlugin
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QO6J4DC7.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
21
21
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
useKeypress,
|
|
42
42
|
usePrefix,
|
|
43
43
|
useState
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LOUKPRIS.js";
|
|
45
45
|
import {
|
|
46
46
|
require_load_json_file,
|
|
47
47
|
require_write_json_file
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
printError,
|
|
51
51
|
require_strip_ansi
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-RFMC2QXQ.js";
|
|
53
53
|
import {
|
|
54
54
|
APIError,
|
|
55
55
|
NowError,
|
|
@@ -6,11 +6,11 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
rulesAggregateCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DVQ4SIWF.js";
|
|
10
10
|
import {
|
|
11
11
|
formatOption,
|
|
12
12
|
limitOption
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RFMC2QXQ.js";
|
|
14
14
|
import {
|
|
15
15
|
packageName
|
|
16
16
|
} from "./chunk-ECRBC4HL.js";
|