vercel 54.14.0 → 54.14.2
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-PKT6ULVJ.js} +9 -9
- package/dist/chunks/{chunk-Y76J3TGD.js → chunk-2HN6DLIY.js} +1 -1
- package/dist/chunks/{chunk-FPRA7U2P.js → chunk-2XEEOHHH.js} +1 -1
- package/dist/chunks/{chunk-TH555JND.js → chunk-2ZSXQQXI.js} +15 -42
- package/dist/chunks/{chunk-6D6CSOSK.js → chunk-372SHB43.js} +86 -62
- package/dist/chunks/{chunk-4KAFHBYE.js → chunk-3BR246Y6.js} +1 -1
- package/dist/chunks/{chunk-V2WFM23D.js → chunk-4BFK3C7V.js} +2 -2
- package/dist/chunks/{chunk-FMN3NXRC.js → chunk-56AJHIQC.js} +1 -1
- package/dist/chunks/chunk-64IF634X.js +18 -0
- package/dist/chunks/{chunk-VNUNCNPE.js → chunk-AWD3IGXU.js} +3 -3
- package/dist/chunks/{chunk-5SYDEK2N.js → chunk-D7MGZH35.js} +1 -1
- package/dist/chunks/{chunk-IQQJHYW4.js → chunk-DPS62LHL.js} +2 -2
- package/dist/chunks/{chunk-RWJORLQP.js → chunk-FEYVO2US.js} +59 -17
- package/dist/chunks/{chunk-ABOX5TXU.js → chunk-FLW73SZ3.js} +3 -3
- package/dist/chunks/{chunk-Z7KOKD2G.js → chunk-G3NXHUFT.js} +1 -1
- 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-WFRHKZFI.js → chunk-IB56QKCM.js} +1 -1
- package/dist/chunks/{chunk-ZTPOJE63.js → chunk-IJJOI63T.js} +1 -1
- package/dist/chunks/{chunk-DAASB6YQ.js → chunk-ILJH44MK.js} +23 -3
- package/dist/chunks/{chunk-V4GROAUJ.js → chunk-IPWWE7PB.js} +4 -7
- package/dist/chunks/{chunk-G7QWUIGS.js → chunk-J7BMPRCU.js} +3 -3
- package/dist/chunks/{chunk-7OZWGXPA.js → chunk-JISJDGJF.js} +2 -2
- package/dist/chunks/{chunk-5UCWXYNH.js → chunk-LQR3CHMH.js} +88 -46
- package/dist/chunks/{chunk-4NDOMD3E.js → chunk-LYCSVJIX.js} +1 -1
- package/dist/chunks/{chunk-6IQZVQV6.js → chunk-MYWLF3BZ.js} +18 -0
- package/dist/chunks/{chunk-6K3WJDFA.js → chunk-O4V7CMVO.js} +10 -10
- package/dist/chunks/{chunk-KJ5O7JQQ.js → chunk-O7RJHL34.js} +81 -86
- package/dist/chunks/{chunk-C3VH3X5Y.js → chunk-OHIZ4SVU.js} +4 -4
- package/dist/chunks/{chunk-JFWE5ORG.js → chunk-P4KQ3FJ4.js} +1 -0
- package/dist/chunks/{chunk-PV533MBH.js → chunk-PMUUPCDL.js} +1 -1
- package/dist/chunks/{chunk-OEM7RB3X.js → chunk-SDZ5ICZL.js} +2 -2
- package/dist/chunks/{chunk-NGRSQRSN.js → chunk-SGPBULVT.js} +1 -1
- package/dist/chunks/{chunk-RM4XGGZO.js → chunk-TSENBD7C.js} +2 -2
- package/dist/chunks/{chunk-O4C4A7HM.js → chunk-VKRW77HH.js} +1 -1
- package/dist/chunks/chunk-VXYGCOKL.js +28 -0
- package/dist/chunks/{chunk-7CJZCFLW.js → chunk-YLGMXYFG.js} +2 -2
- package/dist/chunks/{chunk-B6C7NMT3.js → chunk-Z2MBXYZZ.js} +1 -1
- package/dist/chunks/{chunk-S4VHXL2Y.js → chunk-Z3X747P6.js} +1 -1
- package/dist/chunks/{compile-vercel-config-MD37D2F7.js → compile-vercel-config-3LV7J3IZ.js} +4 -4
- package/dist/chunks/{delete-6EMDCXSA.js → delete-GFW6Y6TZ.js} +10 -8
- package/dist/chunks/{disable-FLJ27NHG.js → disable-PGRAS2ZL.js} +10 -8
- package/dist/chunks/{discard-KEIII6RM.js → discard-S6N5Q4G5.js} +10 -8
- package/dist/chunks/{edit-DOL2ZJPG.js → edit-TICKX4ZV.js} +12 -10
- package/dist/chunks/{enable-PZWZIETT.js → enable-L3BYWN6S.js} +10 -8
- package/dist/chunks/{export-2PFHAELC.js → export-NXS33U5T.js} +6 -6
- package/dist/chunks/{inspect-WPWOZJ2K.js → inspect-OOI5JN3Y.js} +9 -9
- package/dist/chunks/{list-4R5DCLTB.js → list-6EHRL2D4.js} +7 -7
- package/dist/chunks/{list-ZT7QK2H7.js → list-77WL6463.js} +11 -11
- package/dist/chunks/{ls-4JTXQXMQ.js → ls-PBSOEXFG.js} +9 -9
- package/dist/chunks/{publish-JV4J3SOA.js → publish-CU2THVYW.js} +10 -8
- package/dist/chunks/{query-N22EYSZZ.js → query-HEATRYAK.js} +99 -43
- package/dist/chunks/{reorder-TG53BKW4.js → reorder-IQVKSM3H.js} +10 -8
- package/dist/chunks/{restore-U7O4VESA.js → restore-RDEOBGAS.js} +10 -8
- package/dist/chunks/{rm-XA4LYZXI.js → rm-MCSGTU4J.js} +9 -9
- package/dist/chunks/{routes-EAMQVFU2.js → routes-YEU33SON.js} +2 -2
- package/dist/chunks/{rule-inspect-HC745CYT.js → rule-inspect-3YK2XSL3.js} +9 -9
- package/dist/chunks/{rules-RMN72YHN.js → rules-F4MRDDHM.js} +6 -6
- package/dist/chunks/{schema-CZVKUXM6.js → schema-65C5EBJ7.js} +9 -9
- package/dist/chunks/{stamp-ENIXDCRO.js → stamp-AA7R3MZS.js} +3 -1
- package/dist/chunks/{types-P6JKZFEY.js → types-3R7HKP57.js} +3 -3
- package/dist/chunks/{update-PU3WLIA7.js → update-XB4WSRGY.js} +9 -9
- package/dist/commands/build/index.js +18 -16
- package/dist/commands/deploy/index.js +30 -171
- package/dist/commands/dev/index.js +187 -133
- package/dist/commands/dev/next-dev-websocket-shim-preload.cjs +190 -0
- package/dist/commands/env/index.js +162 -101
- package/dist/commands/link/index.js +19 -19
- package/dist/commands/list/index.js +13 -11
- package/dist/commands-bulk.js +258 -104
- package/dist/help.js +1 -1
- package/dist/index.js +27 -27
- package/dist/version.mjs +1 -1
- package/package.json +11 -11
|
@@ -6,39 +6,42 @@ 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-IPWWE7PB.js";
|
|
12
11
|
import {
|
|
13
12
|
getGlobalPathConfig,
|
|
14
13
|
writeToConfigFile
|
|
15
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OHIZ4SVU.js";
|
|
16
15
|
import {
|
|
17
16
|
apiCommand,
|
|
18
17
|
listSubcommand2 as listSubcommand,
|
|
19
18
|
loginCommand
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-O7RJHL34.js";
|
|
21
20
|
import {
|
|
22
21
|
help
|
|
23
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AWD3IGXU.js";
|
|
24
23
|
import {
|
|
25
24
|
login
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-LQR3CHMH.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,
|
|
36
36
|
printError,
|
|
37
37
|
require_strip_ansi
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MYWLF3BZ.js";
|
|
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
|
}
|
|
@@ -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-G3NXHUFT.js";
|
|
16
16
|
import {
|
|
17
17
|
getLinkedProject,
|
|
18
18
|
getProjectByNameOrId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LQR3CHMH.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCommandWithGlobalFlags,
|
|
22
22
|
outputAgentError
|
|
@@ -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
|
};
|
|
@@ -7,7 +7,7 @@ const __dirname = __dirname_(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
formatOption,
|
|
9
9
|
projectOption
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MYWLF3BZ.js";
|
|
11
11
|
import {
|
|
12
12
|
packageName
|
|
13
13
|
} from "./chunk-LN6B7ZI3.js";
|
|
@@ -82,9 +82,9 @@ var metricsCommand = {
|
|
|
82
82
|
{
|
|
83
83
|
name: "filter",
|
|
84
84
|
shorthand: "f",
|
|
85
|
-
type: String,
|
|
85
|
+
type: [String],
|
|
86
86
|
deprecated: false,
|
|
87
|
-
description: "OData filter expression",
|
|
87
|
+
description: "OData filter expression (repeatable, ANDed together)",
|
|
88
88
|
argument: "EXPR"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
@@ -111,6 +111,14 @@ var metricsCommand = {
|
|
|
111
111
|
description: "Time bucket size: 5m, 15m, 1h, 1d (default: auto)",
|
|
112
112
|
argument: "SIZE"
|
|
113
113
|
},
|
|
114
|
+
{
|
|
115
|
+
name: "bucket-timezone",
|
|
116
|
+
shorthand: null,
|
|
117
|
+
type: String,
|
|
118
|
+
deprecated: false,
|
|
119
|
+
description: "IANA timezone for calendar bucket alignment only; does not shift --since/--until or output timestamps (e.g., Europe/Paris)",
|
|
120
|
+
argument: "ZONE"
|
|
121
|
+
},
|
|
114
122
|
{
|
|
115
123
|
...projectOption,
|
|
116
124
|
shorthand: "p"
|
|
@@ -145,6 +153,14 @@ var metricsCommand = {
|
|
|
145
153
|
name: "Core Web Vitals (LCP) by route",
|
|
146
154
|
value: `${packageName} metrics vercel.speed_insights_metric.lcp -a p75 --group-by route --since 7d`
|
|
147
155
|
},
|
|
156
|
+
{
|
|
157
|
+
name: "Daily pageviews with a Paris-aligned bucket",
|
|
158
|
+
value: `${packageName} metrics vercel.analytics_pageview.count --since 2026-05-28 --until 2026-05-29 --granularity 1d --bucket-timezone Europe/Paris`
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "Visitors time series from the top 5 countries",
|
|
162
|
+
value: `${packageName} metrics vercel.analytics_pageview.count -a unique/visitor_id --group-by country --since 1d --granularity 1h --limit 5`
|
|
163
|
+
},
|
|
148
164
|
{
|
|
149
165
|
name: "List available metrics",
|
|
150
166
|
value: `${packageName} metrics schema`
|
|
@@ -153,6 +169,10 @@ var metricsCommand = {
|
|
|
153
169
|
name: "Function executions matching a path pattern",
|
|
154
170
|
value: `${packageName} metrics vercel.function_invocation.count -f "contains(request_path, '/api')" --group-by route --since 1h`
|
|
155
171
|
},
|
|
172
|
+
{
|
|
173
|
+
name: "Function executions matching multiple filters",
|
|
174
|
+
value: `${packageName} metrics vercel.function_invocation.count -f "http_status ge 500" -f "contains(request_path, '/api')" --since 1h`
|
|
175
|
+
},
|
|
156
176
|
{
|
|
157
177
|
name: "Show schema for a metric prefix",
|
|
158
178
|
value: `${packageName} metrics schema vercel.request`
|
|
@@ -6,7 +6,10 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __dirname_(__filename);
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LQR3CHMH.js";
|
|
10
|
+
import {
|
|
11
|
+
isNativeBinaryInstall
|
|
12
|
+
} from "./chunk-HIYWSGI7.js";
|
|
10
13
|
import {
|
|
11
14
|
packageName
|
|
12
15
|
} from "./chunk-LN6B7ZI3.js";
|
|
@@ -14,11 +17,6 @@ import {
|
|
|
14
17
|
__toESM
|
|
15
18
|
} from "./chunk-TZ2YI2VH.js";
|
|
16
19
|
|
|
17
|
-
// src/util/native-install.ts
|
|
18
|
-
function isNativeBinaryInstall() {
|
|
19
|
-
return process.env.VERCEL_VC_NATIVE === "1";
|
|
20
|
-
}
|
|
21
|
-
|
|
22
20
|
// src/util/get-update-command.ts
|
|
23
21
|
var import_fs_extra = __toESM(require_lib(), 1);
|
|
24
22
|
import { sep, dirname, join, resolve } from "path";
|
|
@@ -174,7 +172,6 @@ async function getUpdateCommand() {
|
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
export {
|
|
177
|
-
isNativeBinaryInstall,
|
|
178
175
|
isGlobal,
|
|
179
176
|
getUpdateCommandInfo,
|
|
180
177
|
getUpdateCommand
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-LJ5WXXG6.js";
|
|
11
11
|
import {
|
|
12
12
|
getLinkedProject
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LQR3CHMH.js";
|
|
14
14
|
import {
|
|
15
15
|
buildCommandWithYes,
|
|
16
16
|
outputAgentError
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
getGlobalFlagsOnlyFromArgs,
|
|
21
21
|
parseArguments,
|
|
22
22
|
printError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MYWLF3BZ.js";
|
|
24
24
|
import {
|
|
25
25
|
getCommandName,
|
|
26
26
|
getCommandNamePlain
|
|
@@ -262,7 +262,7 @@ function parsePosition(position) {
|
|
|
262
262
|
}
|
|
263
263
|
async function offerAutoPromote(client, projectId, version, hadExistingStagingVersion, opts) {
|
|
264
264
|
const { default: updateRouteVersion } = await import("./update-route-version-E3V47KNI.js");
|
|
265
|
-
const { default: stamp } = await import("./stamp-
|
|
265
|
+
const { default: stamp } = await import("./stamp-AA7R3MZS.js");
|
|
266
266
|
output_manager_default.print(
|
|
267
267
|
`
|
|
268
268
|
${import_chalk.default.gray(`This change is staged. Run ${import_chalk.default.cyan(getCommandName("routes publish"))} to make it live, or ${import_chalk.default.cyan(getCommandName("routes discard-staging"))} to undo.`)}
|
|
@@ -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-FLW73SZ3.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";
|