vercel 54.13.0 → 54.14.1
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-PVEKZBHH.js → add-INSQH24S.js} +7 -7
- package/dist/chunks/{chunk-FPRA7U2P.js → chunk-467YGYFK.js} +1 -1
- package/dist/chunks/{chunk-6K3WJDFA.js → chunk-4WQGP4Z4.js} +9 -9
- package/dist/chunks/{chunk-V4GROAUJ.js → chunk-5QKYBWW2.js} +4 -7
- package/dist/chunks/chunk-64IF634X.js +18 -0
- package/dist/chunks/{chunk-V2WFM23D.js → chunk-74VEZPM6.js} +1 -1
- package/dist/chunks/{chunk-5SYDEK2N.js → chunk-D7MGZH35.js} +1 -1
- package/dist/chunks/{chunk-Y76J3TGD.js → chunk-DAKMPPIS.js} +1 -1
- package/dist/chunks/{chunk-NR67NDOY.js → chunk-F4WXNECT.js} +209 -76
- package/dist/chunks/{chunk-ADLWAO5W.js → chunk-F6SCQ6XU.js} +58 -16
- package/dist/chunks/{chunk-7CJZCFLW.js → chunk-FKNOCLZU.js} +2 -2
- package/dist/chunks/{chunk-CO5D46AG.js → chunk-GGP5R3FU.js} +18 -38
- package/dist/chunks/{chunk-J5273CSE.js → chunk-HIYWSGI7.js} +19 -10
- package/dist/chunks/{chunk-UAI4ESAJ.js → chunk-J4LCBXF2.js} +14 -41
- package/dist/chunks/{chunk-ABOX5TXU.js → chunk-L7U3Z7E4.js} +3 -3
- package/dist/chunks/{chunk-7OZWGXPA.js → chunk-MKB32SJZ.js} +2 -2
- package/dist/chunks/{chunk-4KAFHBYE.js → chunk-NMGGBH7K.js} +1 -1
- package/dist/chunks/{chunk-C3VH3X5Y.js → chunk-P2AMQX7F.js} +3 -3
- package/dist/chunks/{chunk-6D6CSOSK.js → chunk-P6VIXOWO.js} +84 -60
- package/dist/chunks/{chunk-PV533MBH.js → chunk-PMUUPCDL.js} +1 -1
- package/dist/chunks/{chunk-S4VHXL2Y.js → chunk-TVBXGFEL.js} +1 -1
- package/dist/chunks/{chunk-G7QWUIGS.js → chunk-UEFCAT3N.js} +2 -2
- package/dist/chunks/{chunk-OEM7RB3X.js → chunk-UJ3ZCBUA.js} +1 -1
- package/dist/chunks/{chunk-VNUNCNPE.js → chunk-UPI3OHBK.js} +1 -1
- package/dist/chunks/chunk-VXYGCOKL.js +28 -0
- package/dist/chunks/{chunk-5UCWXYNH.js → chunk-XLLAD5DR.js} +87 -45
- package/dist/chunks/{chunk-Z7KOKD2G.js → chunk-YQPAAXUU.js} +1 -1
- package/dist/chunks/{chunk-B6C7NMT3.js → chunk-Z2MBXYZZ.js} +1 -1
- package/dist/chunks/{chunk-DAASB6YQ.js → chunk-ZRJQY3VK.js} +22 -2
- package/dist/chunks/{compile-vercel-config-MD37D2F7.js → compile-vercel-config-VPPGDFKL.js} +3 -3
- package/dist/chunks/{delete-6EMDCXSA.js → delete-O3EHQHYD.js} +8 -6
- package/dist/chunks/{disable-FLJ27NHG.js → disable-GJDQC34I.js} +8 -6
- package/dist/chunks/{discard-KEIII6RM.js → discard-UZT23XN2.js} +8 -6
- package/dist/chunks/{edit-DOL2ZJPG.js → edit-PEQIROSE.js} +10 -8
- package/dist/chunks/{enable-PZWZIETT.js → enable-ACNEAJ5S.js} +8 -6
- package/dist/chunks/{export-2PFHAELC.js → export-ZICIQKHJ.js} +4 -4
- package/dist/chunks/{inspect-WPWOZJ2K.js → inspect-PUFF7LND.js} +6 -6
- package/dist/chunks/{list-4R5DCLTB.js → list-FWUV4NO4.js} +5 -5
- package/dist/chunks/{list-ZT7QK2H7.js → list-L2UFHHQ7.js} +7 -7
- package/dist/chunks/{ls-4JTXQXMQ.js → ls-6HVFGIQS.js} +7 -7
- package/dist/chunks/{publish-JV4J3SOA.js → publish-HKTAQMYG.js} +8 -6
- package/dist/chunks/{query-N22EYSZZ.js → query-VQ5HDMFO.js} +97 -41
- package/dist/chunks/{reorder-TG53BKW4.js → reorder-CVMW6VL7.js} +8 -6
- package/dist/chunks/{restore-U7O4VESA.js → restore-32NXH4EH.js} +8 -6
- package/dist/chunks/{rm-XA4LYZXI.js → rm-7TPDWMJZ.js} +7 -7
- package/dist/chunks/{routes-EAMQVFU2.js → routes-YEU33SON.js} +2 -2
- package/dist/chunks/{rule-inspect-HC745CYT.js → rule-inspect-PQORU3SU.js} +7 -7
- package/dist/chunks/{rules-RMN72YHN.js → rules-VIITOYFN.js} +6 -6
- package/dist/chunks/{schema-CZVKUXM6.js → schema-AECGMSF5.js} +6 -6
- package/dist/chunks/{stamp-ENIXDCRO.js → stamp-AA7R3MZS.js} +3 -1
- package/dist/chunks/{update-PU3WLIA7.js → update-J4QCT3GS.js} +7 -7
- package/dist/commands/build/index.js +16 -14
- package/dist/commands/deploy/index.js +22 -163
- package/dist/commands/dev/index.js +13 -14
- package/dist/commands/env/index.js +153 -92
- package/dist/commands/link/index.js +11 -11
- package/dist/commands/list/index.js +10 -8
- package/dist/commands-bulk.js +2472 -1696
- package/dist/index.js +18 -18
- package/dist/version.mjs +1 -1
- package/package.json +14 -14
|
@@ -6,30 +6,30 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getUpdateCommandInfo,
|
|
9
|
-
isGlobal
|
|
10
|
-
|
|
11
|
-
} from "./chunk-V4GROAUJ.js";
|
|
9
|
+
isGlobal
|
|
10
|
+
} from "./chunk-5QKYBWW2.js";
|
|
12
11
|
import {
|
|
13
12
|
getGlobalPathConfig,
|
|
14
13
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P2AMQX7F.js";
|
|
16
15
|
import {
|
|
17
16
|
apiCommand,
|
|
18
17
|
listSubcommand2 as listSubcommand,
|
|
19
18
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F4WXNECT.js";
|
|
21
20
|
import {
|
|
22
21
|
help
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UPI3OHBK.js";
|
|
24
23
|
import {
|
|
25
24
|
login
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-XLLAD5DR.js";
|
|
27
26
|
import {
|
|
28
|
-
TelemetryClient
|
|
29
|
-
|
|
27
|
+
TelemetryClient,
|
|
28
|
+
isNativeBinaryInstall
|
|
29
|
+
} from "./chunk-HIYWSGI7.js";
|
|
30
30
|
import {
|
|
31
31
|
require_ms
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GGP5R3FU.js";
|
|
33
33
|
import {
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
@@ -39,6 +39,9 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
packageName
|
|
41
41
|
} from "./chunk-LN6B7ZI3.js";
|
|
42
|
+
import {
|
|
43
|
+
pkg_default
|
|
44
|
+
} from "./chunk-P4QNYOFB.js";
|
|
42
45
|
import {
|
|
43
46
|
output_manager_default
|
|
44
47
|
} from "./chunk-Z5SBJH6L.js";
|
|
@@ -2851,12 +2854,31 @@ async function runTagOperation(client, options) {
|
|
|
2851
2854
|
}
|
|
2852
2855
|
|
|
2853
2856
|
// src/util/upgrade.ts
|
|
2854
|
-
import { spawn } from "child_process";
|
|
2857
|
+
import { spawn, execFile } from "child_process";
|
|
2858
|
+
import { promisify } from "util";
|
|
2855
2859
|
import { tmpdir } from "os";
|
|
2856
|
-
|
|
2860
|
+
var execFileAsync = promisify(execFile);
|
|
2861
|
+
async function getInstalledVersion() {
|
|
2862
|
+
for (const bin of ["vercel", "vc"]) {
|
|
2863
|
+
try {
|
|
2864
|
+
const { stdout } = await execFileAsync(bin, ["--version"], {
|
|
2865
|
+
encoding: "utf8",
|
|
2866
|
+
windowsHide: true
|
|
2867
|
+
});
|
|
2868
|
+
const version = stdout.trim();
|
|
2869
|
+
if (version) {
|
|
2870
|
+
return version;
|
|
2871
|
+
}
|
|
2872
|
+
} catch {
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
return void 0;
|
|
2876
|
+
}
|
|
2877
|
+
async function executeUpgrade(targetVersion) {
|
|
2857
2878
|
const { command: updateCommand, global } = await getUpdateCommandInfo();
|
|
2858
2879
|
const [command, ...args] = updateCommand.split(" ");
|
|
2859
2880
|
const cwd = global ? tmpdir() : process.cwd();
|
|
2881
|
+
const versionBefore = pkg_default.version;
|
|
2860
2882
|
output_manager_default.log(`Upgrading Vercel CLI...`);
|
|
2861
2883
|
output_manager_default.debug(`Executing: ${updateCommand} (cwd: ${cwd})`);
|
|
2862
2884
|
return new Promise((resolve3) => {
|
|
@@ -2879,9 +2901,7 @@ async function executeUpgrade() {
|
|
|
2879
2901
|
resolve3(1);
|
|
2880
2902
|
});
|
|
2881
2903
|
upgradeProcess.on("close", (code) => {
|
|
2882
|
-
if (code
|
|
2883
|
-
output_manager_default.success("Vercel CLI has been upgraded successfully!");
|
|
2884
|
-
} else {
|
|
2904
|
+
if (code !== 0) {
|
|
2885
2905
|
const stdoutStr = Buffer.concat(stdout).toString();
|
|
2886
2906
|
const stderrStr = Buffer.concat(stderr).toString();
|
|
2887
2907
|
if (stdoutStr) {
|
|
@@ -2894,8 +2914,30 @@ async function executeUpgrade() {
|
|
|
2894
2914
|
output_manager_default.log(
|
|
2895
2915
|
`You can try running the command manually: ${updateCommand}`
|
|
2896
2916
|
);
|
|
2917
|
+
resolve3(code ?? 1);
|
|
2918
|
+
return;
|
|
2919
|
+
}
|
|
2920
|
+
if (targetVersion) {
|
|
2921
|
+
output_manager_default.success(
|
|
2922
|
+
`Vercel CLI has been upgraded to v${targetVersion} successfully!`
|
|
2923
|
+
);
|
|
2924
|
+
resolve3(0);
|
|
2925
|
+
return;
|
|
2897
2926
|
}
|
|
2898
|
-
|
|
2927
|
+
getInstalledVersion().then((versionAfter) => {
|
|
2928
|
+
if (versionAfter && versionAfter === versionBefore) {
|
|
2929
|
+
output_manager_default.log(
|
|
2930
|
+
`No upgrade available. Vercel CLI is already on the latest version (v${versionBefore}).`
|
|
2931
|
+
);
|
|
2932
|
+
} else if (versionAfter) {
|
|
2933
|
+
output_manager_default.success(
|
|
2934
|
+
`Vercel CLI has been upgraded to v${versionAfter} successfully!`
|
|
2935
|
+
);
|
|
2936
|
+
} else {
|
|
2937
|
+
output_manager_default.success("Vercel CLI has been upgraded successfully!");
|
|
2938
|
+
}
|
|
2939
|
+
resolve3(0);
|
|
2940
|
+
});
|
|
2899
2941
|
});
|
|
2900
2942
|
});
|
|
2901
2943
|
}
|
|
@@ -7,12 +7,12 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
printProjectNotFoundError,
|
|
9
9
|
setupAndLink
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P6VIXOWO.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject,
|
|
13
13
|
param,
|
|
14
14
|
resolveProjectCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XLLAD5DR.js";
|
|
16
16
|
import {
|
|
17
17
|
buildCommandWithYes,
|
|
18
18
|
outputActionRequired
|
|
@@ -5,11 +5,7 @@ const require = __createRequire(import.meta.url);
|
|
|
5
5
|
const __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./chunk-S7KYDPEM.js";
|
|
10
|
-
import {
|
|
11
|
-
__commonJS,
|
|
12
|
-
__toESM
|
|
8
|
+
__commonJS
|
|
13
9
|
} from "./chunk-TZ2YI2VH.js";
|
|
14
10
|
|
|
15
11
|
// ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
@@ -89,61 +85,45 @@ var require_ms = __commonJS({
|
|
|
89
85
|
return void 0;
|
|
90
86
|
}
|
|
91
87
|
}
|
|
92
|
-
function fmtShort(
|
|
93
|
-
var msAbs = Math.abs(
|
|
88
|
+
function fmtShort(ms) {
|
|
89
|
+
var msAbs = Math.abs(ms);
|
|
94
90
|
if (msAbs >= d) {
|
|
95
|
-
return Math.round(
|
|
91
|
+
return Math.round(ms / d) + "d";
|
|
96
92
|
}
|
|
97
93
|
if (msAbs >= h) {
|
|
98
|
-
return Math.round(
|
|
94
|
+
return Math.round(ms / h) + "h";
|
|
99
95
|
}
|
|
100
96
|
if (msAbs >= m) {
|
|
101
|
-
return Math.round(
|
|
97
|
+
return Math.round(ms / m) + "m";
|
|
102
98
|
}
|
|
103
99
|
if (msAbs >= s) {
|
|
104
|
-
return Math.round(
|
|
100
|
+
return Math.round(ms / s) + "s";
|
|
105
101
|
}
|
|
106
|
-
return
|
|
102
|
+
return ms + "ms";
|
|
107
103
|
}
|
|
108
|
-
function fmtLong(
|
|
109
|
-
var msAbs = Math.abs(
|
|
104
|
+
function fmtLong(ms) {
|
|
105
|
+
var msAbs = Math.abs(ms);
|
|
110
106
|
if (msAbs >= d) {
|
|
111
|
-
return plural(
|
|
107
|
+
return plural(ms, msAbs, d, "day");
|
|
112
108
|
}
|
|
113
109
|
if (msAbs >= h) {
|
|
114
|
-
return plural(
|
|
110
|
+
return plural(ms, msAbs, h, "hour");
|
|
115
111
|
}
|
|
116
112
|
if (msAbs >= m) {
|
|
117
|
-
return plural(
|
|
113
|
+
return plural(ms, msAbs, m, "minute");
|
|
118
114
|
}
|
|
119
115
|
if (msAbs >= s) {
|
|
120
|
-
return plural(
|
|
116
|
+
return plural(ms, msAbs, s, "second");
|
|
121
117
|
}
|
|
122
|
-
return
|
|
118
|
+
return ms + " ms";
|
|
123
119
|
}
|
|
124
|
-
function plural(
|
|
120
|
+
function plural(ms, msAbs, n, name) {
|
|
125
121
|
var isPlural = msAbs >= n * 1.5;
|
|
126
|
-
return Math.round(
|
|
122
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
125
|
});
|
|
130
126
|
|
|
131
|
-
// src/util/output/elapsed.ts
|
|
132
|
-
var import_ms = __toESM(require_ms(), 1);
|
|
133
|
-
var import_chalk = __toESM(require_source(), 1);
|
|
134
|
-
function elapsed(time, ago = false) {
|
|
135
|
-
return import_chalk.default.gray(
|
|
136
|
-
`[${time < 1e3 ? `${time}ms` : (0, import_ms.default)(time)}${ago ? " ago" : ""}]`
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// src/util/output/stamp.ts
|
|
141
|
-
var stamp_default = (start = Date.now()) => {
|
|
142
|
-
return () => elapsed(Date.now() - start);
|
|
143
|
-
};
|
|
144
|
-
|
|
145
127
|
export {
|
|
146
|
-
require_ms
|
|
147
|
-
elapsed,
|
|
148
|
-
stamp_default
|
|
128
|
+
require_ms
|
|
149
129
|
};
|
|
@@ -2351,6 +2351,11 @@ var require_write_json_file = __commonJS({
|
|
|
2351
2351
|
}
|
|
2352
2352
|
});
|
|
2353
2353
|
|
|
2354
|
+
// src/util/native-install.ts
|
|
2355
|
+
function isNativeBinaryInstall() {
|
|
2356
|
+
return process.env.VERCEL_VC_NATIVE === "1";
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2354
2359
|
// src/util/telemetry/index.ts
|
|
2355
2360
|
import { randomUUID as randomUUID2 } from "crypto";
|
|
2356
2361
|
import os from "os";
|
|
@@ -2848,17 +2853,20 @@ var TelemetryEventStore = class {
|
|
|
2848
2853
|
* FIXME: handle max buffer size
|
|
2849
2854
|
*/
|
|
2850
2855
|
async sendToSubprocess(payload, outputDebugEnabled) {
|
|
2851
|
-
const
|
|
2852
|
-
|
|
2853
|
-
|
|
2856
|
+
const flushArgs = ["telemetry", "flush", JSON.stringify(payload)];
|
|
2857
|
+
let nodeBinaryPath;
|
|
2858
|
+
let script;
|
|
2859
|
+
if (isNativeBinaryInstall()) {
|
|
2860
|
+
nodeBinaryPath = process.execPath;
|
|
2861
|
+
script = flushArgs;
|
|
2862
|
+
} else {
|
|
2863
|
+
const args = [process.execPath, process.argv[0], process.argv[1]];
|
|
2864
|
+
if (args[0] === args[1]) {
|
|
2865
|
+
args.shift();
|
|
2866
|
+
}
|
|
2867
|
+
nodeBinaryPath = args[0];
|
|
2868
|
+
script = [...args.slice(1), ...flushArgs];
|
|
2854
2869
|
}
|
|
2855
|
-
const nodeBinaryPath = args[0];
|
|
2856
|
-
const script = [
|
|
2857
|
-
...args.slice(1),
|
|
2858
|
-
"telemetry",
|
|
2859
|
-
"flush",
|
|
2860
|
-
JSON.stringify(payload)
|
|
2861
|
-
];
|
|
2862
2870
|
const env = cloneEnv(process.env, {
|
|
2863
2871
|
VERCEL_TELEMETRY_DISABLED: "1"
|
|
2864
2872
|
});
|
|
@@ -2900,6 +2908,7 @@ export {
|
|
|
2900
2908
|
require_graceful_fs,
|
|
2901
2909
|
require_dist,
|
|
2902
2910
|
require_load_json_file,
|
|
2911
|
+
isNativeBinaryInstall,
|
|
2903
2912
|
TelemetryClient,
|
|
2904
2913
|
TelemetryEventStore
|
|
2905
2914
|
};
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
printIndications,
|
|
10
10
|
require_dist as require_dist2,
|
|
11
11
|
sleep
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P2AMQX7F.js";
|
|
13
13
|
import {
|
|
14
14
|
suggestNextCommands
|
|
15
15
|
} from "./chunk-LKBI43XK.js";
|
|
@@ -19,10 +19,13 @@ import {
|
|
|
19
19
|
} from "./chunk-TCF6MGBY.js";
|
|
20
20
|
import {
|
|
21
21
|
CommandTimeout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-F4WXNECT.js";
|
|
23
|
+
import {
|
|
24
|
+
stamp_default
|
|
25
|
+
} from "./chunk-64IF634X.js";
|
|
23
26
|
import {
|
|
24
27
|
getScope
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YQPAAXUU.js";
|
|
26
29
|
import {
|
|
27
30
|
getProjectByNameOrId,
|
|
28
31
|
param,
|
|
@@ -31,14 +34,13 @@ import {
|
|
|
31
34
|
require_pluralize,
|
|
32
35
|
showPluginTipIfNeeded,
|
|
33
36
|
ua_default
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
require_ms,
|
|
37
|
-
stamp_default
|
|
38
|
-
} from "./chunk-CO5D46AG.js";
|
|
37
|
+
} from "./chunk-XLLAD5DR.js";
|
|
39
38
|
import {
|
|
40
39
|
require_lib
|
|
41
40
|
} from "./chunk-N2T234LO.js";
|
|
41
|
+
import {
|
|
42
|
+
require_ms
|
|
43
|
+
} from "./chunk-GGP5R3FU.js";
|
|
42
44
|
import {
|
|
43
45
|
require_strip_ansi,
|
|
44
46
|
responseError
|
|
@@ -1966,7 +1968,6 @@ async function processDeployment({
|
|
|
1966
1968
|
agent,
|
|
1967
1969
|
manual,
|
|
1968
1970
|
jsonOutput,
|
|
1969
|
-
functionsBeta,
|
|
1970
1971
|
linkedProject,
|
|
1971
1972
|
...args
|
|
1972
1973
|
}) {
|
|
@@ -1983,6 +1984,7 @@ async function processDeployment({
|
|
|
1983
1984
|
bulkRedirectsPath
|
|
1984
1985
|
} = args;
|
|
1985
1986
|
const client = now._client;
|
|
1987
|
+
const aliasedRowWillPrint = !noWait && requestBody.autoAssignCustomDomains !== false;
|
|
1986
1988
|
const { env = {} } = requestBody;
|
|
1987
1989
|
const token = now._token;
|
|
1988
1990
|
if (!token) {
|
|
@@ -2074,7 +2076,7 @@ async function processDeployment({
|
|
|
2074
2076
|
printAlignedLabel(
|
|
2075
2077
|
isProdDeployment ? "Production" : "Preview",
|
|
2076
2078
|
import_chalk2.default.cyan(previewUrl),
|
|
2077
|
-
isProdDeployment ? { gutter: "\u25B2" } : {}
|
|
2079
|
+
isProdDeployment && !aliasedRowWillPrint ? { gutter: "\u25B2" } : {}
|
|
2078
2080
|
);
|
|
2079
2081
|
if (!jsonOutput && (quiet || process.env.FORCE_TTY === "1")) {
|
|
2080
2082
|
process.stdout.write(`https://${event.payload.url}`);
|
|
@@ -2147,7 +2149,7 @@ async function processDeployment({
|
|
|
2147
2149
|
printAlignedLabel(
|
|
2148
2150
|
isProdDeployment ? "Production" : "Preview",
|
|
2149
2151
|
import_chalk2.default.cyan(previewUrl),
|
|
2150
|
-
isProdDeployment ? { gutter: "\u25B2" } : {}
|
|
2152
|
+
isProdDeployment && !aliasedRowWillPrint ? { gutter: "\u25B2" } : {}
|
|
2151
2153
|
);
|
|
2152
2154
|
if (v1ChecksPending || v2ChecksPending) {
|
|
2153
2155
|
output_manager_default.spinner("Running Checks\u2026", 0);
|
|
@@ -2168,14 +2170,6 @@ async function processDeployment({
|
|
|
2168
2170
|
}
|
|
2169
2171
|
if (event.type === "error") {
|
|
2170
2172
|
stopSpinner();
|
|
2171
|
-
if (!functionsBeta) {
|
|
2172
|
-
const maybeSizeError = handleErrorSolvableWithFunctionsBeta(
|
|
2173
|
-
event.payload
|
|
2174
|
-
);
|
|
2175
|
-
if (maybeSizeError) {
|
|
2176
|
-
throw maybeSizeError;
|
|
2177
|
-
}
|
|
2178
|
-
}
|
|
2179
2173
|
if (!archive) {
|
|
2180
2174
|
const maybeError = handleErrorSolvableWithArchive(event.payload);
|
|
2181
2175
|
if (maybeError) {
|
|
@@ -2209,23 +2203,6 @@ async function processDeployment({
|
|
|
2209
2203
|
throw err;
|
|
2210
2204
|
}
|
|
2211
2205
|
}
|
|
2212
|
-
var FunctionsSizeLimitError = class extends Error {
|
|
2213
|
-
constructor() {
|
|
2214
|
-
super(...arguments);
|
|
2215
|
-
this.link = "https://vercel.com/docs/functions/runtimes/python#extended-size-limits-with-functions-beta";
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
|
-
function handleErrorSolvableWithFunctionsBeta(error) {
|
|
2219
|
-
if ((0, import_error_utils.isErrorLike)(error)) {
|
|
2220
|
-
const isLambdaSizeExceeded = "errorCode" in error && error.errorCode === "LAMBDA_SIZE_EXCEEDED";
|
|
2221
|
-
const isMessageMatch = !isLambdaSizeExceeded && "errorMessage" in error && typeof error.errorMessage === "string" && error.errorMessage.includes("exceeds") && (error.errorMessage.includes("Lambda size limit") || error.errorMessage.includes("Lambda ephemeral storage") || error.errorMessage.includes("exceeds Lambda limit"));
|
|
2222
|
-
if (isLambdaSizeExceeded || isMessageMatch) {
|
|
2223
|
-
return new FunctionsSizeLimitError(
|
|
2224
|
-
error.errorMessage || error.message || "Function build exceeded the maximum size limit."
|
|
2225
|
-
);
|
|
2226
|
-
}
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
2206
|
var archiveSuggestionText = "Try using `--archive=tgz` to limit the amount of files you upload.";
|
|
2230
2207
|
var UploadErrorMissingArchive = class extends Error {
|
|
2231
2208
|
constructor() {
|
|
@@ -2284,7 +2261,6 @@ var Now = class {
|
|
|
2284
2261
|
prebuilt = false,
|
|
2285
2262
|
vercelOutputDir,
|
|
2286
2263
|
rootDirectory,
|
|
2287
|
-
wantsPublic,
|
|
2288
2264
|
meta,
|
|
2289
2265
|
gitMetadata,
|
|
2290
2266
|
regions,
|
|
@@ -2302,7 +2278,6 @@ var Now = class {
|
|
|
2302
2278
|
agentName,
|
|
2303
2279
|
manual,
|
|
2304
2280
|
jsonOutput = false,
|
|
2305
|
-
functionsBeta,
|
|
2306
2281
|
linkedProject
|
|
2307
2282
|
}, org, isSettingUpProject, archive) {
|
|
2308
2283
|
const hashes = {};
|
|
@@ -2310,7 +2285,6 @@ var Now = class {
|
|
|
2310
2285
|
...nowConfig,
|
|
2311
2286
|
env,
|
|
2312
2287
|
build,
|
|
2313
|
-
public: wantsPublic || nowConfig.public,
|
|
2314
2288
|
name,
|
|
2315
2289
|
project,
|
|
2316
2290
|
meta,
|
|
@@ -2324,6 +2298,7 @@ var Now = class {
|
|
|
2324
2298
|
};
|
|
2325
2299
|
delete requestBody.scope;
|
|
2326
2300
|
delete requestBody.github;
|
|
2301
|
+
delete requestBody.public;
|
|
2327
2302
|
const deployment = await processDeployment({
|
|
2328
2303
|
now: this,
|
|
2329
2304
|
agent: this._client.agent,
|
|
@@ -2345,7 +2320,6 @@ var Now = class {
|
|
|
2345
2320
|
bulkRedirectsPath: nowConfig.bulkRedirectsPath,
|
|
2346
2321
|
manual,
|
|
2347
2322
|
jsonOutput,
|
|
2348
|
-
functionsBeta,
|
|
2349
2323
|
linkedProject
|
|
2350
2324
|
});
|
|
2351
2325
|
if (deployment && deployment.warnings) {
|
|
@@ -3091,7 +3065,6 @@ export {
|
|
|
3091
3065
|
displayBuildLogs,
|
|
3092
3066
|
displayBuildLogsUntilFinalError,
|
|
3093
3067
|
displayRuntimeLogs,
|
|
3094
|
-
FunctionsSizeLimitError,
|
|
3095
3068
|
UploadErrorMissingArchive,
|
|
3096
3069
|
Now,
|
|
3097
3070
|
require_cjs,
|
|
@@ -6,17 +6,17 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
outputError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D7MGZH35.js";
|
|
10
10
|
import {
|
|
11
11
|
AGENT_REASON
|
|
12
12
|
} from "./chunk-LJ5WXXG6.js";
|
|
13
13
|
import {
|
|
14
14
|
getScope
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YQPAAXUU.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XLLAD5DR.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -6,12 +6,12 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveAlertsScope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L7U3Z7E4.js";
|
|
10
10
|
import {
|
|
11
11
|
handleValidationError,
|
|
12
12
|
outputError,
|
|
13
13
|
validateAllProjectMutualExclusivity
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D7MGZH35.js";
|
|
15
15
|
import {
|
|
16
16
|
AGENT_REASON
|
|
17
17
|
} from "./chunk-LJ5WXXG6.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-V5P25P7F.js";
|
|
10
10
|
import {
|
|
11
11
|
getLocalPathConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-74VEZPM6.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
15
15
|
VERCEL_CONFIG_EXTENSIONS,
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
useKeypress,
|
|
37
37
|
usePrefix,
|
|
38
38
|
useState
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XLLAD5DR.js";
|
|
40
40
|
import {
|
|
41
41
|
require_load_json_file
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-HIYWSGI7.js";
|
|
43
43
|
import {
|
|
44
44
|
require_lib as require_lib2
|
|
45
45
|
} from "./chunk-N2T234LO.js";
|