vercel 56.2.1 → 56.3.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-YIAPBLSF.js → add-CF5SQESQ.js} +10 -13
- package/dist/chunks/{add-ZAQLTF5W.js → add-DMRGZN3Z.js} +9 -12
- package/dist/chunks/{chunk-75PKWYOS.js → chunk-22G26AIX.js} +99 -74
- package/dist/chunks/{chunk-7OJJKCSW.js → chunk-2C2JJTAM.js} +6 -10
- package/dist/chunks/{chunk-DDEPCAGE.js → chunk-2MXGTALG.js} +529 -164
- package/dist/chunks/{chunk-5AJNUXWP.js → chunk-3PKFXNJZ.js} +2 -4
- package/dist/chunks/{chunk-5OT26JZN.js → chunk-3VS4DTAU.js} +4 -6
- package/dist/chunks/{chunk-JJWESW5Y.js → chunk-4G6QZSBL.js} +2 -4
- package/dist/chunks/{chunk-NULWLKT7.js → chunk-4YOCOUDN.js} +4 -4
- package/dist/chunks/{chunk-GXBDQRHJ.js → chunk-4Z5LC2CI.js} +1 -1
- package/dist/chunks/{chunk-CMJMYVQM.js → chunk-6OMC3HOW.js} +1 -1
- package/dist/chunks/{chunk-JF7LPEBD.js → chunk-A6LE5VAN.js} +1 -1
- package/dist/chunks/{chunk-QY63UKTP.js → chunk-DMSLNAVH.js} +2 -2
- package/dist/chunks/{chunk-52V5NDUN.js → chunk-DZHRFBKE.js} +2 -2
- package/dist/chunks/{chunk-MYD7N6MH.js → chunk-ERPZJ4SX.js} +13 -3
- package/dist/chunks/{chunk-YKJA5TVC.js → chunk-EYNXG3FO.js} +3 -5
- package/dist/chunks/{chunk-RLJA2KI7.js → chunk-FYQPTH5C.js} +2 -4
- package/dist/chunks/{chunk-7TJLLZPN.js → chunk-G4PG5HVE.js} +6 -10
- package/dist/chunks/{chunk-7C7MMT4J.js → chunk-GIL3VAUR.js} +2 -4
- package/dist/chunks/{chunk-GPVU6JRS.js → chunk-HUKYQKVQ.js} +9 -7
- package/dist/chunks/{chunk-EPBUWIAO.js → chunk-I2IICWBW.js} +48 -24
- package/dist/chunks/{chunk-KXVQEPTA.js → chunk-ICSIFPXG.js} +3 -5
- package/dist/chunks/{chunk-P6AK7SVK.js → chunk-KSSNLCL4.js} +360 -25
- package/dist/chunks/{chunk-HIO4M75R.js → chunk-KXKQQIUS.js} +6 -10
- package/dist/chunks/{chunk-HA7C7SDO.js → chunk-LHFNIZ2P.js} +2 -4
- package/dist/chunks/{chunk-2I34TRQZ.js → chunk-NP32PAKT.js} +2 -2
- package/dist/chunks/{chunk-QEEGXNFK.js → chunk-NZRWTCRM.js} +1 -1
- package/dist/chunks/{chunk-IDMKFYEA.js → chunk-OGG6UBXK.js} +2 -4
- package/dist/chunks/{chunk-PASZMRTZ.js → chunk-PRO4S2KV.js} +5 -5
- package/dist/chunks/{chunk-DD6D5J7E.js → chunk-Q5ADSH7D.js} +8 -12
- package/dist/chunks/{chunk-6ZVIC6FL.js → chunk-QP3C5YS5.js} +8 -8
- package/dist/chunks/{chunk-5HNYJHOB.js → chunk-SDK7R4WO.js} +1 -1
- package/dist/chunks/{chunk-22GUZ5KG.js → chunk-STJJ3DFO.js} +2 -4
- package/dist/chunks/{chunk-EHTPDXTS.js → chunk-SZXT3PDQ.js} +3 -294
- package/dist/chunks/{chunk-CB3I3QIT.js → chunk-UDWRZXIT.js} +193 -85
- package/dist/chunks/{chunk-DREO3DFB.js → chunk-VZSZBD4V.js} +16 -6
- package/dist/chunks/{chunk-VOBBH2SB.js → chunk-W346YNDN.js} +0 -49
- package/dist/chunks/{chunk-7S3QUMIG.js → chunk-YS6EDZHB.js} +3 -5
- package/dist/chunks/{chunk-UESEGACQ.js → chunk-ZDCS54ZZ.js} +3 -3
- package/dist/chunks/{chunk-4RGSUV5C.js → chunk-ZVLPUREX.js} +2 -2
- package/dist/chunks/{compile-vercel-config-4NKPN3EG.js → compile-vercel-config-RPPL7W56.js} +4 -4
- package/dist/chunks/{delete-NCMDC3IU.js → delete-QBVZ5X6B.js} +14 -14
- package/dist/chunks/{disable-Z7DXY4AY.js → disable-YYGXPXBI.js} +14 -13
- package/dist/chunks/{discard-4ILK3ULP.js → discard-X2MSUFGI.js} +13 -12
- package/dist/chunks/{edit-ROJQCTWR.js → edit-3ABZQYUU.js} +17 -18
- package/dist/chunks/{enable-TAVCLAEC.js → enable-HUMYCGKA.js} +14 -13
- package/dist/chunks/{export-YTSIGJFX.js → export-KGHH4WAT.js} +15 -14
- package/dist/chunks/{image-LORSHERP.js → image-OO3WWKZV.js} +6 -8
- package/dist/chunks/{inspect-5C4UHSCT.js → inspect-5TNHHD2M.js} +10 -12
- package/dist/chunks/{inspect-OHDU2SVS.js → inspect-FNUCB7Y3.js} +8 -10
- package/dist/chunks/{inspect-L4UIWOXO.js → inspect-KSSQEAW7.js} +11 -15
- package/dist/chunks/{inspect-A2X7RTP4.js → inspect-Z6SSD2SR.js} +8 -10
- package/dist/chunks/{list-FGVDMSFN.js → list-TXNYRVJG.js} +8 -10
- package/dist/chunks/{list-P2B5MHON.js → list-X2AD3HCX.js} +10 -13
- package/dist/chunks/{login-4BK3VGII.js → login-SLPCZ2OF.js} +11 -14
- package/dist/chunks/{ls-YXKRRYTL.js → ls-2YSINRJ3.js} +10 -13
- package/dist/chunks/{ls-NU4D6TLG.js → ls-4QMJLQQL.js} +10 -13
- package/dist/chunks/{ls-WDRFGE2J.js → ls-C7MNQ4IK.js} +12 -15
- package/dist/chunks/{ls-RAC5LMTR.js → ls-QLTOY23G.js} +9 -12
- package/dist/chunks/{publish-DGF2TQCQ.js → publish-GV4LLLXP.js} +13 -12
- package/dist/chunks/{query-NWW6RDHK.js → query-3AHRMAPA.js} +10 -12
- package/dist/chunks/{reorder-TTZBKCEB.js → reorder-VSVOPNM4.js} +17 -16
- package/dist/chunks/{restore-DG3LZMHQ.js → restore-FKYCF73P.js} +19 -18
- package/dist/chunks/{rm-7WXXLTXF.js → rm-4QCXZRC2.js} +10 -13
- package/dist/chunks/{rm-U2DFRDKE.js → rm-UTFG42FN.js} +8 -11
- package/dist/chunks/{rm-2VBE4C2V.js → rm-YV5WQKQM.js} +9 -12
- package/dist/chunks/{rule-inspect-4NL3GGDB.js → rule-inspect-IONN4MTP.js} +9 -12
- package/dist/chunks/{rules-DABNOUNG.js → rules-S2KPV7HY.js} +9 -11
- package/dist/chunks/{schema-4RRRUUOO.js → schema-3LX3V2HE.js} +11 -12
- package/dist/chunks/{tags-MLX3AHHK.js → tags-CQ4FRIJ4.js} +5 -7
- package/dist/chunks/{types-2TPA6J4G.js → types-QKLIFDDP.js} +5 -5
- package/dist/chunks/{update-YXH7WWTN.js → update-U7OGHCP5.js} +9 -12
- package/dist/commands/build/index.js +26 -31
- package/dist/commands/deploy/index.js +57 -75
- package/dist/commands/dev/index.js +193 -159
- package/dist/commands/env/index.js +70 -47
- package/dist/commands/link/index.js +25 -29
- package/dist/commands/list/index.js +13 -17
- package/dist/commands-bulk.js +637 -620
- package/dist/index.js +23 -25
- package/dist/version.mjs +1 -1
- package/package.json +20 -20
- package/dist/chunks/chunk-DWU7JOO6.js +0 -158
- package/dist/chunks/chunk-IC4YEIGW.js +0 -101
- package/dist/chunks/chunk-IMUF5MGV.js +0 -81
- package/dist/chunks/chunk-SGL3NMOP.js +0 -86
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
isLambda,
|
|
12
12
|
staticFiles,
|
|
13
13
|
writeBuildResult
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-ERPZJ4SX.js";
|
|
15
15
|
import {
|
|
16
16
|
pullCommandLogic
|
|
17
|
-
} from "../../chunks/chunk-
|
|
17
|
+
} from "../../chunks/chunk-HUKYQKVQ.js";
|
|
18
18
|
import {
|
|
19
19
|
require_semver
|
|
20
20
|
} from "../../chunks/chunk-IB5L4LKZ.js";
|
|
21
21
|
import {
|
|
22
22
|
pickOverrides,
|
|
23
23
|
readProjectSettings
|
|
24
|
-
} from "../../chunks/chunk-
|
|
24
|
+
} from "../../chunks/chunk-A6LE5VAN.js";
|
|
25
25
|
import "../../chunks/chunk-R6IGDGX3.js";
|
|
26
26
|
import "../../chunks/chunk-NJUPUGOE.js";
|
|
27
27
|
import {
|
|
@@ -30,34 +30,26 @@ import {
|
|
|
30
30
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
31
31
|
import {
|
|
32
32
|
ensureLink
|
|
33
|
-
} from "../../chunks/chunk-
|
|
34
|
-
import "../../chunks/chunk-
|
|
35
|
-
import "../../chunks/chunk-
|
|
36
|
-
import {
|
|
37
|
-
printProjectNotFoundError
|
|
38
|
-
} from "../../chunks/chunk-IMUF5MGV.js";
|
|
39
|
-
import {
|
|
40
|
-
AGENT_REASON,
|
|
41
|
-
AGENT_STATUS
|
|
42
|
-
} from "../../chunks/chunk-IC4YEIGW.js";
|
|
33
|
+
} from "../../chunks/chunk-KXKQQIUS.js";
|
|
34
|
+
import "../../chunks/chunk-PRO4S2KV.js";
|
|
35
|
+
import "../../chunks/chunk-ZDCS54ZZ.js";
|
|
43
36
|
import {
|
|
44
37
|
buildCommand
|
|
45
|
-
} from "../../chunks/chunk-
|
|
38
|
+
} from "../../chunks/chunk-EYNXG3FO.js";
|
|
46
39
|
import {
|
|
47
40
|
help
|
|
48
|
-
} from "../../chunks/chunk-
|
|
49
|
-
import "../../chunks/chunk-
|
|
50
|
-
import {
|
|
51
|
-
detectExplicitScope
|
|
52
|
-
} from "../../chunks/chunk-DWU7JOO6.js";
|
|
41
|
+
} from "../../chunks/chunk-DMSLNAVH.js";
|
|
42
|
+
import "../../chunks/chunk-NZRWTCRM.js";
|
|
53
43
|
import {
|
|
54
44
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
55
45
|
VERCEL_DIR,
|
|
56
46
|
compileVercelConfig,
|
|
47
|
+
detectExplicitScope,
|
|
57
48
|
findSourceVercelConfigFile,
|
|
58
49
|
getLinkedProject,
|
|
59
50
|
getProjectLink,
|
|
60
51
|
parseTarget,
|
|
52
|
+
printProjectNotFoundError,
|
|
61
53
|
pullEnvRecords,
|
|
62
54
|
readJSONFile,
|
|
63
55
|
require_ajv,
|
|
@@ -71,28 +63,30 @@ import {
|
|
|
71
63
|
resolveProjectCwd,
|
|
72
64
|
ua_default,
|
|
73
65
|
validateConfig
|
|
74
|
-
} from "../../chunks/chunk-
|
|
66
|
+
} from "../../chunks/chunk-2MXGTALG.js";
|
|
75
67
|
import {
|
|
68
|
+
AGENT_REASON,
|
|
69
|
+
AGENT_STATUS,
|
|
76
70
|
outputAgentError
|
|
77
|
-
} from "../../chunks/chunk-
|
|
71
|
+
} from "../../chunks/chunk-UDWRZXIT.js";
|
|
78
72
|
import {
|
|
79
73
|
TelemetryClient
|
|
80
74
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
81
75
|
import {
|
|
82
|
-
getFlagsSpecification,
|
|
83
|
-
getGlobalFlagsOnlyFromArgs,
|
|
84
76
|
parseArguments,
|
|
85
77
|
printError,
|
|
86
78
|
toEnumerableError
|
|
87
|
-
} from "../../chunks/chunk-
|
|
79
|
+
} from "../../chunks/chunk-SZXT3PDQ.js";
|
|
88
80
|
import {
|
|
89
81
|
CantParseJSONFile,
|
|
90
82
|
cmd,
|
|
91
83
|
getCommandName,
|
|
92
84
|
getCommandNamePlain,
|
|
85
|
+
getFlagsSpecification,
|
|
86
|
+
getGlobalFlagsFromArgs,
|
|
93
87
|
packageName,
|
|
94
88
|
require_lib as require_lib2
|
|
95
|
-
} from "../../chunks/chunk-
|
|
89
|
+
} from "../../chunks/chunk-KSSNLCL4.js";
|
|
96
90
|
import {
|
|
97
91
|
pkg_default
|
|
98
92
|
} from "../../chunks/chunk-P4QNYOFB.js";
|
|
@@ -559,13 +553,14 @@ function scopeRoutesToServiceOwnership({
|
|
|
559
553
|
// src/util/build/sort-builders.ts
|
|
560
554
|
var import_frameworks2 = __toESM(require_frameworks(), 1);
|
|
561
555
|
function sortBuilders(builds) {
|
|
562
|
-
const
|
|
556
|
+
const frameworkRuntimeSet = new Set(
|
|
563
557
|
import_frameworks2.frameworkList.map((f) => f.useRuntime?.use || "@vercel/static-build")
|
|
564
558
|
);
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
559
|
+
frameworkRuntimeSet.delete("@vercel/go");
|
|
560
|
+
frameworkRuntimeSet.delete("@vercel/python");
|
|
561
|
+
frameworkRuntimeSet.delete("@vercel/ruby");
|
|
562
|
+
frameworkRuntimeSet.delete("@vercel/rust");
|
|
563
|
+
const toNumber = (build) => build.use === "@vercel/go" || build.use === "@vercel/python" || build.use === "@vercel/ruby" || build.use === "@vercel/rust" ? 1 : frameworkRuntimeSet.has(build.use) ? 0 : 2;
|
|
569
564
|
return builds.sort((build1, build2) => {
|
|
570
565
|
return toNumber(build1) - toNumber(build2);
|
|
571
566
|
});
|
|
@@ -3607,7 +3602,7 @@ async function writeManifests(packageManifests, diagnostics, ops, outputDir) {
|
|
|
3607
3602
|
|
|
3608
3603
|
// src/commands/build/index.ts
|
|
3609
3604
|
function buildCommandWithGlobalFlags(baseSubcommand, argv) {
|
|
3610
|
-
const globalFlags =
|
|
3605
|
+
const globalFlags = getGlobalFlagsFromArgs(argv.slice(2));
|
|
3611
3606
|
const full = globalFlags.length ? `${baseSubcommand} ${globalFlags.join(" ")}` : baseSubcommand;
|
|
3612
3607
|
return getCommandNamePlain(full);
|
|
3613
3608
|
}
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
purchaseDomainIfAvailable,
|
|
14
14
|
require_cjs,
|
|
15
15
|
setupDomain
|
|
16
|
-
} from "../../chunks/chunk-
|
|
16
|
+
} from "../../chunks/chunk-Q5ADSH7D.js";
|
|
17
17
|
import {
|
|
18
18
|
readLocalConfig
|
|
19
|
-
} from "../../chunks/chunk-
|
|
19
|
+
} from "../../chunks/chunk-4YOCOUDN.js";
|
|
20
20
|
import {
|
|
21
21
|
highlight
|
|
22
22
|
} from "../../chunks/chunk-V5P25P7F.js";
|
|
@@ -24,10 +24,6 @@ import "../../chunks/chunk-XBN2O34P.js";
|
|
|
24
24
|
import {
|
|
25
25
|
parseMeta
|
|
26
26
|
} from "../../chunks/chunk-EKPSCRJZ.js";
|
|
27
|
-
import {
|
|
28
|
-
getDeployment,
|
|
29
|
-
mapCertError
|
|
30
|
-
} from "../../chunks/chunk-SGL3NMOP.js";
|
|
31
27
|
import {
|
|
32
28
|
validateJsonOutput
|
|
33
29
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -40,20 +36,20 @@ import {
|
|
|
40
36
|
deprecatedArchiveSplitTgz,
|
|
41
37
|
getCommandAliases,
|
|
42
38
|
initSubcommand
|
|
43
|
-
} from "../../chunks/chunk-
|
|
44
|
-
import "../../chunks/chunk-
|
|
45
|
-
import "../../chunks/chunk-
|
|
46
|
-
import "../../chunks/chunk-
|
|
47
|
-
import "../../chunks/chunk-
|
|
48
|
-
import "../../chunks/chunk-
|
|
49
|
-
import "../../chunks/chunk-
|
|
50
|
-
import "../../chunks/chunk-
|
|
51
|
-
import "../../chunks/chunk-
|
|
52
|
-
import "../../chunks/chunk-
|
|
53
|
-
import "../../chunks/chunk-
|
|
39
|
+
} from "../../chunks/chunk-I2IICWBW.js";
|
|
40
|
+
import "../../chunks/chunk-3VS4DTAU.js";
|
|
41
|
+
import "../../chunks/chunk-GIL3VAUR.js";
|
|
42
|
+
import "../../chunks/chunk-FYQPTH5C.js";
|
|
43
|
+
import "../../chunks/chunk-4G6QZSBL.js";
|
|
44
|
+
import "../../chunks/chunk-VZSZBD4V.js";
|
|
45
|
+
import "../../chunks/chunk-3PKFXNJZ.js";
|
|
46
|
+
import "../../chunks/chunk-YS6EDZHB.js";
|
|
47
|
+
import "../../chunks/chunk-STJJ3DFO.js";
|
|
48
|
+
import "../../chunks/chunk-OGG6UBXK.js";
|
|
49
|
+
import "../../chunks/chunk-LHFNIZ2P.js";
|
|
54
50
|
import {
|
|
55
51
|
pickOverrides
|
|
56
|
-
} from "../../chunks/chunk-
|
|
52
|
+
} from "../../chunks/chunk-A6LE5VAN.js";
|
|
57
53
|
import "../../chunks/chunk-NJUPUGOE.js";
|
|
58
54
|
import {
|
|
59
55
|
stamp_default
|
|
@@ -61,27 +57,24 @@ import {
|
|
|
61
57
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
62
58
|
import {
|
|
63
59
|
ensureLink
|
|
64
|
-
} from "../../chunks/chunk-
|
|
60
|
+
} from "../../chunks/chunk-KXKQQIUS.js";
|
|
65
61
|
import {
|
|
66
62
|
validatePaths,
|
|
67
63
|
validateRootDirectory
|
|
68
|
-
} from "../../chunks/chunk-
|
|
69
|
-
import "../../chunks/chunk-
|
|
70
|
-
import "../../chunks/chunk-
|
|
71
|
-
import {
|
|
72
|
-
AGENT_STATUS
|
|
73
|
-
} from "../../chunks/chunk-IC4YEIGW.js";
|
|
74
|
-
import "../../chunks/chunk-YKJA5TVC.js";
|
|
64
|
+
} from "../../chunks/chunk-PRO4S2KV.js";
|
|
65
|
+
import "../../chunks/chunk-ZDCS54ZZ.js";
|
|
66
|
+
import "../../chunks/chunk-EYNXG3FO.js";
|
|
75
67
|
import {
|
|
76
68
|
help
|
|
77
|
-
} from "../../chunks/chunk-
|
|
69
|
+
} from "../../chunks/chunk-DMSLNAVH.js";
|
|
78
70
|
import {
|
|
79
71
|
table
|
|
80
|
-
} from "../../chunks/chunk-
|
|
81
|
-
import "../../chunks/chunk-DWU7JOO6.js";
|
|
72
|
+
} from "../../chunks/chunk-NZRWTCRM.js";
|
|
82
73
|
import {
|
|
83
74
|
compileVercelConfig,
|
|
84
75
|
createGitMeta,
|
|
76
|
+
getDeployment,
|
|
77
|
+
mapCertError,
|
|
85
78
|
param,
|
|
86
79
|
parseEnv,
|
|
87
80
|
parseTarget,
|
|
@@ -89,19 +82,19 @@ import {
|
|
|
89
82
|
require_dist as require_dist2,
|
|
90
83
|
require_frameworks,
|
|
91
84
|
require_lib
|
|
92
|
-
} from "../../chunks/chunk-
|
|
85
|
+
} from "../../chunks/chunk-2MXGTALG.js";
|
|
93
86
|
import {
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
AGENT_STATUS,
|
|
88
|
+
outputAgentError,
|
|
89
|
+
withGlobalFlags
|
|
90
|
+
} from "../../chunks/chunk-UDWRZXIT.js";
|
|
96
91
|
import {
|
|
97
92
|
TelemetryClient
|
|
98
93
|
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
99
94
|
import {
|
|
100
|
-
getCommandNameWithGlobalFlags,
|
|
101
|
-
getFlagsSpecification,
|
|
102
95
|
parseArguments,
|
|
103
96
|
printError
|
|
104
|
-
} from "../../chunks/chunk-
|
|
97
|
+
} from "../../chunks/chunk-SZXT3PDQ.js";
|
|
105
98
|
import {
|
|
106
99
|
AliasDomainConfigured,
|
|
107
100
|
BuildError,
|
|
@@ -125,9 +118,10 @@ import {
|
|
|
125
118
|
UserAborted,
|
|
126
119
|
code,
|
|
127
120
|
getCommandName,
|
|
121
|
+
getFlagsSpecification,
|
|
128
122
|
isAPIError,
|
|
129
123
|
require_bytes
|
|
130
|
-
} from "../../chunks/chunk-
|
|
124
|
+
} from "../../chunks/chunk-KSSNLCL4.js";
|
|
131
125
|
import "../../chunks/chunk-P4QNYOFB.js";
|
|
132
126
|
import "../../chunks/chunk-52QYYTM5.js";
|
|
133
127
|
import {
|
|
@@ -878,7 +872,7 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
878
872
|
message: deployment.message,
|
|
879
873
|
next: [
|
|
880
874
|
{
|
|
881
|
-
command:
|
|
875
|
+
command: withGlobalFlags(client, "deploy"),
|
|
882
876
|
when: "retry deploy"
|
|
883
877
|
}
|
|
884
878
|
]
|
|
@@ -905,7 +899,7 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
905
899
|
message: msg,
|
|
906
900
|
next: [
|
|
907
901
|
{
|
|
908
|
-
command:
|
|
902
|
+
command: withGlobalFlags(client, "deploy"),
|
|
909
903
|
when: "retry deploy"
|
|
910
904
|
}
|
|
911
905
|
]
|
|
@@ -944,7 +938,7 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
944
938
|
deployment: deploymentJson,
|
|
945
939
|
next: [
|
|
946
940
|
{
|
|
947
|
-
command:
|
|
941
|
+
command: withGlobalFlags(client, "deploy"),
|
|
948
942
|
when: "retry deploy"
|
|
949
943
|
}
|
|
950
944
|
]
|
|
@@ -984,7 +978,7 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
984
978
|
deployment: deploymentJson,
|
|
985
979
|
next: [
|
|
986
980
|
{
|
|
987
|
-
command:
|
|
981
|
+
command: withGlobalFlags(client, "deploy"),
|
|
988
982
|
when: "retry deploy"
|
|
989
983
|
}
|
|
990
984
|
]
|
|
@@ -1006,7 +1000,7 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
1006
1000
|
message: "Uploading failed. Please try again.",
|
|
1007
1001
|
next: [
|
|
1008
1002
|
{
|
|
1009
|
-
command:
|
|
1003
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1010
1004
|
when: "retry deploy"
|
|
1011
1005
|
}
|
|
1012
1006
|
]
|
|
@@ -1031,17 +1025,11 @@ async function handleInitDeployment(client, telemetryClient) {
|
|
|
1031
1025
|
message: `Deployment ${deployment.url} ready.`,
|
|
1032
1026
|
next: [
|
|
1033
1027
|
{
|
|
1034
|
-
command:
|
|
1035
|
-
`inspect ${deployment.url}`,
|
|
1036
|
-
client.argv
|
|
1037
|
-
),
|
|
1028
|
+
command: withGlobalFlags(client, `inspect ${deployment.url}`),
|
|
1038
1029
|
when: "Inspect deployment"
|
|
1039
1030
|
},
|
|
1040
1031
|
{
|
|
1041
|
-
command:
|
|
1042
|
-
"deploy --prod",
|
|
1043
|
-
client.argv
|
|
1044
|
-
),
|
|
1032
|
+
command: withGlobalFlags(client, "deploy --prod"),
|
|
1045
1033
|
when: "Promote to production"
|
|
1046
1034
|
}
|
|
1047
1035
|
]
|
|
@@ -1120,9 +1108,9 @@ async function handleContinueSubcommand(client, telemetryClient) {
|
|
|
1120
1108
|
message: "Missing required --id flag. Provide the deployment ID to continue.",
|
|
1121
1109
|
next: [
|
|
1122
1110
|
{
|
|
1123
|
-
command:
|
|
1124
|
-
|
|
1125
|
-
|
|
1111
|
+
command: withGlobalFlags(
|
|
1112
|
+
client,
|
|
1113
|
+
"deploy continue --id <deployment-id>"
|
|
1126
1114
|
),
|
|
1127
1115
|
when: "provide deployment ID"
|
|
1128
1116
|
}
|
|
@@ -1191,13 +1179,13 @@ async function handleContinueSubcommand(client, telemetryClient) {
|
|
|
1191
1179
|
message: 'No prebuilt output found in ".vercel/output". Run build first.',
|
|
1192
1180
|
next: [
|
|
1193
1181
|
{
|
|
1194
|
-
command:
|
|
1182
|
+
command: withGlobalFlags(client, "build"),
|
|
1195
1183
|
when: "generate prebuilt output"
|
|
1196
1184
|
},
|
|
1197
1185
|
{
|
|
1198
|
-
command:
|
|
1199
|
-
|
|
1200
|
-
|
|
1186
|
+
command: withGlobalFlags(
|
|
1187
|
+
client,
|
|
1188
|
+
`deploy continue --id ${idFlag}`
|
|
1201
1189
|
),
|
|
1202
1190
|
when: "deploy prebuilt output"
|
|
1203
1191
|
}
|
|
@@ -1652,7 +1640,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
|
|
|
1652
1640
|
message: deployment.message,
|
|
1653
1641
|
next: [
|
|
1654
1642
|
{
|
|
1655
|
-
command:
|
|
1643
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1656
1644
|
when: "retry deploy"
|
|
1657
1645
|
}
|
|
1658
1646
|
]
|
|
@@ -1679,7 +1667,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
|
|
|
1679
1667
|
message: msg,
|
|
1680
1668
|
next: [
|
|
1681
1669
|
{
|
|
1682
|
-
command:
|
|
1670
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1683
1671
|
when: "retry deploy"
|
|
1684
1672
|
}
|
|
1685
1673
|
]
|
|
@@ -1718,7 +1706,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
|
|
|
1718
1706
|
deployment: deploymentJson,
|
|
1719
1707
|
next: [
|
|
1720
1708
|
{
|
|
1721
|
-
command:
|
|
1709
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1722
1710
|
when: "retry deploy"
|
|
1723
1711
|
}
|
|
1724
1712
|
]
|
|
@@ -1758,7 +1746,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
|
|
|
1758
1746
|
deployment: deploymentJson,
|
|
1759
1747
|
next: [
|
|
1760
1748
|
{
|
|
1761
|
-
command:
|
|
1749
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1762
1750
|
when: "retry deploy"
|
|
1763
1751
|
}
|
|
1764
1752
|
]
|
|
@@ -1783,7 +1771,7 @@ async function handleDefaultDeploy(client, telemetryClient) {
|
|
|
1783
1771
|
message: "Uploading failed. Please try again.",
|
|
1784
1772
|
next: [
|
|
1785
1773
|
{
|
|
1786
|
-
command:
|
|
1774
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1787
1775
|
when: "retry deploy"
|
|
1788
1776
|
}
|
|
1789
1777
|
]
|
|
@@ -1814,7 +1802,7 @@ ${err.stack}`);
|
|
|
1814
1802
|
message: err.message,
|
|
1815
1803
|
next: [
|
|
1816
1804
|
{
|
|
1817
|
-
command:
|
|
1805
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1818
1806
|
when: "retry deploy"
|
|
1819
1807
|
}
|
|
1820
1808
|
]
|
|
@@ -1840,7 +1828,7 @@ ${err.stack}`);
|
|
|
1840
1828
|
message: err.message,
|
|
1841
1829
|
next: [
|
|
1842
1830
|
{
|
|
1843
|
-
command:
|
|
1831
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1844
1832
|
when: "retry deploy"
|
|
1845
1833
|
}
|
|
1846
1834
|
]
|
|
@@ -1886,7 +1874,7 @@ ${err.stack}`);
|
|
|
1886
1874
|
message: err instanceof Error ? err.message : String(err),
|
|
1887
1875
|
next: [
|
|
1888
1876
|
{
|
|
1889
|
-
command:
|
|
1877
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1890
1878
|
when: "retry deploy"
|
|
1891
1879
|
}
|
|
1892
1880
|
]
|
|
@@ -1971,7 +1959,7 @@ ${err.stack}`);
|
|
|
1971
1959
|
message,
|
|
1972
1960
|
next: [
|
|
1973
1961
|
{
|
|
1974
|
-
command:
|
|
1962
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1975
1963
|
when: "retry deploy"
|
|
1976
1964
|
}
|
|
1977
1965
|
]
|
|
@@ -1994,7 +1982,7 @@ ${err.stack}`);
|
|
|
1994
1982
|
message: err instanceof Error ? err.message : String(err),
|
|
1995
1983
|
next: [
|
|
1996
1984
|
{
|
|
1997
|
-
command:
|
|
1985
|
+
command: withGlobalFlags(client, "deploy"),
|
|
1998
1986
|
when: "retry deploy"
|
|
1999
1987
|
}
|
|
2000
1988
|
]
|
|
@@ -2017,17 +2005,11 @@ ${err.stack}`);
|
|
|
2017
2005
|
message: `Deployment ${deployment.url} ready.`,
|
|
2018
2006
|
next: [
|
|
2019
2007
|
{
|
|
2020
|
-
command:
|
|
2021
|
-
`inspect ${deployment.url}`,
|
|
2022
|
-
client.argv
|
|
2023
|
-
),
|
|
2008
|
+
command: withGlobalFlags(client, `inspect ${deployment.url}`),
|
|
2024
2009
|
when: "Inspect deployment"
|
|
2025
2010
|
},
|
|
2026
2011
|
{
|
|
2027
|
-
command:
|
|
2028
|
-
"deploy --prod",
|
|
2029
|
-
client.argv
|
|
2030
|
-
),
|
|
2012
|
+
command: withGlobalFlags(client, "deploy --prod"),
|
|
2031
2013
|
when: "Promote to production"
|
|
2032
2014
|
}
|
|
2033
2015
|
]
|
|
@@ -2446,7 +2428,7 @@ async function handleFailedCheckRuns(client, deployment, asJson) {
|
|
|
2446
2428
|
failedCheckRuns: failedCheckRunsWithLogs,
|
|
2447
2429
|
next: [
|
|
2448
2430
|
{
|
|
2449
|
-
command:
|
|
2431
|
+
command: withGlobalFlags(client, "deploy"),
|
|
2450
2432
|
when: "retry deploy after fixing check failures"
|
|
2451
2433
|
}
|
|
2452
2434
|
]
|