vercel 54.18.2 → 54.18.4
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-L27WEHJQ.js → add-SC5SUCZD.js} +11 -11
- package/dist/chunks/{chunk-CT3OCODK.js → chunk-24FCBXI4.js} +1 -1
- package/dist/chunks/{chunk-UZJFAOUJ.js → chunk-3JUR5ASZ.js} +8 -8
- package/dist/chunks/{chunk-BMDRRM33.js → chunk-4L6FOIRG.js} +5 -5
- package/dist/chunks/{chunk-VNO5J2AC.js → chunk-5WXBM2VM.js} +5 -5
- package/dist/chunks/{chunk-LM7QG25J.js → chunk-6KYBAPAY.js} +5 -5
- package/dist/chunks/{chunk-HCESSY4J.js → chunk-7AHJ2INY.js} +3 -3
- package/dist/chunks/{chunk-DPS62LHL.js → chunk-D2M77YVC.js} +3 -3
- package/dist/chunks/{chunk-VKRW77HH.js → chunk-DFEUWDGM.js} +2 -2
- package/dist/chunks/{chunk-URENS2ZN.js → chunk-DNEOCFVV.js} +31 -13
- package/dist/chunks/{chunk-U5FVI3MF.js → chunk-E2ENQE2W.js} +1 -1
- package/dist/chunks/{chunk-GNREFAJK.js → chunk-EASAC5XB.js} +9 -9
- package/dist/chunks/{chunk-Q77ALSXR.js → chunk-ECCWJHC6.js} +1 -1
- package/dist/chunks/{chunk-IB56QKCM.js → chunk-EFUR47FZ.js} +2 -2
- package/dist/chunks/{chunk-MYWLF3BZ.js → chunk-EJ6GQI6F.js} +2 -2
- package/dist/chunks/{chunk-IJJOI63T.js → chunk-FNRZFHFO.js} +2 -2
- package/dist/chunks/{chunk-U56UA26H.js → chunk-GPHR3TXH.js} +2 -2
- package/dist/chunks/{chunk-NKU6QGO6.js → chunk-GXBDQRHJ.js} +2 -2
- package/dist/chunks/{chunk-JKDUSECY.js → chunk-HX52W7S3.js} +6 -6
- package/dist/chunks/{chunk-X5UROEGN.js → chunk-IZOHLD5D.js} +2 -2
- package/dist/chunks/{chunk-LCNEKTLC.js → chunk-MAJWH2PD.js} +2 -2
- package/dist/chunks/{chunk-76I54SRS.js → chunk-MFB7HREA.js} +3 -3
- package/dist/chunks/{chunk-YVDJCV54.js → chunk-MKGFEOLL.js} +3 -3
- package/dist/chunks/{chunk-BRQ6PX3U.js → chunk-NJUPUGOE.js} +1 -1
- package/dist/chunks/{chunk-SGPBULVT.js → chunk-OGJB2GHI.js} +2 -2
- package/dist/chunks/{chunk-JFA4NUXP.js → chunk-P2QZZ6MR.js} +1 -1
- package/dist/chunks/{chunk-LN6B7ZI3.js → chunk-P6AK7SVK.js} +3 -3
- package/dist/chunks/{chunk-CC424HWH.js → chunk-PVEWOY25.js} +16 -13
- package/dist/chunks/{chunk-TCF6MGBY.js → chunk-SGL3NMOP.js} +1 -1
- package/dist/chunks/{chunk-6RJUWNWV.js → chunk-TQ4ZOHJH.js} +4 -4
- package/dist/chunks/{chunk-RIPEVVUO.js → chunk-TV3JIBII.js} +9 -9
- package/dist/chunks/{chunk-56AJHIQC.js → chunk-UJ5UEAMC.js} +2 -2
- package/dist/chunks/{chunk-TSENBD7C.js → chunk-ULKM3ZD4.js} +2 -2
- package/dist/chunks/{chunk-6UFGHJ24.js → chunk-URDZ7T57.js} +2 -2
- package/dist/chunks/{chunk-2MZ4H45N.js → chunk-VAU35QDZ.js} +3 -3
- package/dist/chunks/{chunk-LYCSVJIX.js → chunk-VKBYAWTL.js} +1 -1
- package/dist/chunks/{chunk-WEVQWSBT.js → chunk-VTE7W5ZP.js} +1 -1
- package/dist/chunks/{chunk-AHS6XAT2.js → chunk-W3EZFUUG.js} +3 -3
- package/dist/chunks/{chunk-2LA6R76V.js → chunk-X3QZP7HG.js} +3 -3
- package/dist/chunks/{chunk-LKBI43XK.js → chunk-XBN2O34P.js} +1 -1
- package/dist/chunks/{chunk-LWJWW6ZY.js → chunk-YSIZGIDP.js} +3 -3
- package/dist/chunks/{chunk-YCHEVH4O.js → chunk-ZSIRCJYY.js} +11 -30
- package/dist/chunks/{compile-vercel-config-TZ4FYN6U.js → compile-vercel-config-SH26SIEE.js} +6 -6
- package/dist/chunks/{delete-GBB7EFPS.js → delete-KKSM7VAB.js} +8 -8
- package/dist/chunks/{disable-7S24H5WP.js → disable-WBMPOI4P.js} +8 -8
- package/dist/chunks/{discard-O2AV2Q3R.js → discard-YTI62CYN.js} +8 -8
- package/dist/chunks/{edit-7YK5VLBU.js → edit-64WPKV63.js} +10 -10
- package/dist/chunks/{enable-VWDYFYM3.js → enable-IHOVZGOO.js} +8 -8
- package/dist/chunks/{exec-CGBHRYWG.js → exec-UKMIYIF6.js} +2 -2
- package/dist/chunks/{export-FDHFOO5L.js → export-AIND6BB4.js} +8 -8
- package/dist/chunks/{inspect-TJ5BJSQ5.js → inspect-UEU7X5KL.js} +11 -11
- package/dist/chunks/{list-RQUCVGBH.js → list-54UGGJSQ.js} +12 -12
- package/dist/chunks/{list-B5TC6JJH.js → list-S63CAB5B.js} +9 -9
- package/dist/chunks/{ls-KX57FKO3.js → ls-ZIC7I6HY.js} +11 -11
- package/dist/chunks/{publish-KRTXC4UH.js → publish-MAWQLTGD.js} +8 -8
- package/dist/chunks/{query-EIQVIL3N.js → query-PVCAJHO3.js} +11 -11
- package/dist/chunks/{reorder-DYDMY5BA.js → reorder-MKSZ3J4S.js} +8 -8
- package/dist/chunks/{restore-FX42JLZS.js → restore-ECTVX5YS.js} +8 -8
- package/dist/chunks/{rm-SUXZB6OT.js → rm-SF7YXRFJ.js} +11 -11
- package/dist/chunks/{routes-KUTLDFIF.js → routes-JP2CNQ5J.js} +3 -3
- package/dist/chunks/{rule-inspect-CBM636H7.js → rule-inspect-LSU242F3.js} +11 -11
- package/dist/chunks/{rules-6RZBCQQK.js → rules-6IKB3MSI.js} +9 -9
- package/dist/chunks/{schema-TNVA57SO.js → schema-CG5WKBQ4.js} +11 -11
- package/dist/chunks/{types-3R7HKP57.js → types-EQD5UZOH.js} +5 -5
- package/dist/chunks/{update-Q5CDTYFG.js → update-D3ZHID4G.js} +11 -11
- package/dist/commands/build/index.js +39 -30
- package/dist/commands/deploy/index.js +47 -29
- package/dist/commands/dev/builder-worker.cjs +9 -2
- package/dist/commands/dev/index.js +36 -19
- package/dist/commands/env/index.js +23 -23
- package/dist/commands/link/index.js +21 -21
- package/dist/commands/list/index.js +12 -12
- package/dist/commands-bulk.js +54 -90
- package/dist/index.js +23 -23
- package/dist/version.mjs +1 -1
- package/package.json +15 -15
- package/dist/chunks/{chunk-Z5SBJH6L.js → chunk-OX7KI3LF.js} +5 -5
|
@@ -8,39 +8,39 @@ import {
|
|
|
8
8
|
fetchMetricDetailOrExit,
|
|
9
9
|
fetchMetricListOrExit,
|
|
10
10
|
formatErrorJson
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GXBDQRHJ.js";
|
|
12
12
|
import {
|
|
13
13
|
indent_default
|
|
14
14
|
} from "./chunk-A3NYPUKZ.js";
|
|
15
15
|
import {
|
|
16
16
|
formatTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ULKM3ZD4.js";
|
|
18
18
|
import {
|
|
19
19
|
validateJsonOutput
|
|
20
20
|
} from "./chunk-XPKWKPWA.js";
|
|
21
21
|
import {
|
|
22
22
|
schemaSubcommand
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MAJWH2PD.js";
|
|
24
24
|
import {
|
|
25
25
|
getScope
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-X3QZP7HG.js";
|
|
27
|
+
import "./chunk-VKBYAWTL.js";
|
|
28
28
|
import {
|
|
29
29
|
require_pluralize
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-DNEOCFVV.js";
|
|
31
|
+
import "./chunk-IZOHLD5D.js";
|
|
32
|
+
import "./chunk-ECCWJHC6.js";
|
|
33
33
|
import {
|
|
34
34
|
getFlagsSpecification,
|
|
35
35
|
parseArguments,
|
|
36
36
|
printError
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-EJ6GQI6F.js";
|
|
38
|
+
import "./chunk-P6AK7SVK.js";
|
|
39
39
|
import "./chunk-P4QNYOFB.js";
|
|
40
40
|
import "./chunk-2RVK3DDN.js";
|
|
41
41
|
import {
|
|
42
42
|
output_manager_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-OX7KI3LF.js";
|
|
44
44
|
import "./chunk-GGP5R3FU.js";
|
|
45
45
|
import "./chunk-S7KYDPEM.js";
|
|
46
46
|
import {
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
} from "./chunk-XPKWKPWA.js";
|
|
10
10
|
import {
|
|
11
11
|
typesSubcommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UJ5UEAMC.js";
|
|
13
13
|
import {
|
|
14
14
|
table
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VKBYAWTL.js";
|
|
16
16
|
import {
|
|
17
17
|
getFlagsSpecification,
|
|
18
18
|
parseArguments,
|
|
19
19
|
printError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EJ6GQI6F.js";
|
|
21
21
|
import {
|
|
22
22
|
isAPIError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P6AK7SVK.js";
|
|
24
24
|
import "./chunk-P4QNYOFB.js";
|
|
25
25
|
import {
|
|
26
26
|
output_manager_default
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OX7KI3LF.js";
|
|
28
28
|
import {
|
|
29
29
|
require_source
|
|
30
30
|
} from "./chunk-S7KYDPEM.js";
|
|
@@ -9,39 +9,39 @@ import {
|
|
|
9
9
|
handleRulesApiError,
|
|
10
10
|
parseRulesFlagsAndScope,
|
|
11
11
|
rulesItemPath
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-W3EZFUUG.js";
|
|
13
|
+
import "./chunk-6KYBAPAY.js";
|
|
14
|
+
import "./chunk-E2ENQE2W.js";
|
|
15
15
|
import {
|
|
16
16
|
validateJsonOutput
|
|
17
17
|
} from "./chunk-XPKWKPWA.js";
|
|
18
18
|
import {
|
|
19
19
|
rulesUpdateSubcommand
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OGJB2GHI.js";
|
|
21
21
|
import {
|
|
22
22
|
AGENT_REASON
|
|
23
23
|
} from "./chunk-QH7WYDEP.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-X3QZP7HG.js";
|
|
25
|
+
import "./chunk-DNEOCFVV.js";
|
|
26
26
|
import {
|
|
27
27
|
buildCommandWithGlobalFlags,
|
|
28
28
|
outputAgentError
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-IZOHLD5D.js";
|
|
30
|
+
import "./chunk-ECCWJHC6.js";
|
|
31
31
|
import {
|
|
32
32
|
getFlagsSpecification,
|
|
33
33
|
parseArguments,
|
|
34
34
|
printError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EJ6GQI6F.js";
|
|
36
36
|
import {
|
|
37
37
|
isAPIError,
|
|
38
38
|
packageName
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-P6AK7SVK.js";
|
|
40
40
|
import "./chunk-P4QNYOFB.js";
|
|
41
41
|
import "./chunk-2RVK3DDN.js";
|
|
42
42
|
import {
|
|
43
43
|
output_manager_default
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-OX7KI3LF.js";
|
|
45
45
|
import "./chunk-GGP5R3FU.js";
|
|
46
46
|
import "./chunk-S7KYDPEM.js";
|
|
47
47
|
import "./chunk-TZ2YI2VH.js";
|
|
@@ -11,40 +11,40 @@ import {
|
|
|
11
11
|
isLambda,
|
|
12
12
|
staticFiles,
|
|
13
13
|
writeBuildResult
|
|
14
|
-
} from "../../chunks/chunk-
|
|
14
|
+
} from "../../chunks/chunk-TQ4ZOHJH.js";
|
|
15
15
|
import {
|
|
16
16
|
pullCommandLogic
|
|
17
|
-
} from "../../chunks/chunk-
|
|
17
|
+
} from "../../chunks/chunk-TV3JIBII.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-
|
|
25
|
-
import "../../chunks/chunk-
|
|
26
|
-
import "../../chunks/chunk-
|
|
24
|
+
} from "../../chunks/chunk-URDZ7T57.js";
|
|
25
|
+
import "../../chunks/chunk-24FCBXI4.js";
|
|
26
|
+
import "../../chunks/chunk-NJUPUGOE.js";
|
|
27
27
|
import {
|
|
28
28
|
stamp_default
|
|
29
29
|
} from "../../chunks/chunk-64IF634X.js";
|
|
30
30
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
31
|
-
import "../../chunks/chunk-
|
|
31
|
+
import "../../chunks/chunk-5WXBM2VM.js";
|
|
32
32
|
import {
|
|
33
33
|
printProjectNotFoundError
|
|
34
|
-
} from "../../chunks/chunk-
|
|
34
|
+
} from "../../chunks/chunk-3JUR5ASZ.js";
|
|
35
35
|
import {
|
|
36
36
|
AGENT_REASON,
|
|
37
37
|
AGENT_STATUS
|
|
38
38
|
} from "../../chunks/chunk-QH7WYDEP.js";
|
|
39
|
-
import "../../chunks/chunk-
|
|
39
|
+
import "../../chunks/chunk-7AHJ2INY.js";
|
|
40
40
|
import {
|
|
41
41
|
buildCommand
|
|
42
|
-
} from "../../chunks/chunk-
|
|
43
|
-
import "../../chunks/chunk-
|
|
42
|
+
} from "../../chunks/chunk-MFB7HREA.js";
|
|
43
|
+
import "../../chunks/chunk-X3QZP7HG.js";
|
|
44
44
|
import {
|
|
45
45
|
help
|
|
46
|
-
} from "../../chunks/chunk-
|
|
47
|
-
import "../../chunks/chunk-
|
|
46
|
+
} from "../../chunks/chunk-YSIZGIDP.js";
|
|
47
|
+
import "../../chunks/chunk-VKBYAWTL.js";
|
|
48
48
|
import {
|
|
49
49
|
DEFAULT_VERCEL_CONFIG_FILENAME,
|
|
50
50
|
VERCEL_DIR,
|
|
@@ -66,20 +66,20 @@ import {
|
|
|
66
66
|
resolveProjectCwd,
|
|
67
67
|
ua_default,
|
|
68
68
|
validateConfig
|
|
69
|
-
} from "../../chunks/chunk-
|
|
69
|
+
} from "../../chunks/chunk-DNEOCFVV.js";
|
|
70
70
|
import {
|
|
71
71
|
outputAgentError
|
|
72
|
-
} from "../../chunks/chunk-
|
|
72
|
+
} from "../../chunks/chunk-IZOHLD5D.js";
|
|
73
73
|
import {
|
|
74
74
|
TelemetryClient
|
|
75
|
-
} from "../../chunks/chunk-
|
|
75
|
+
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
76
76
|
import {
|
|
77
77
|
getFlagsSpecification,
|
|
78
78
|
getGlobalFlagsOnlyFromArgs,
|
|
79
79
|
parseArguments,
|
|
80
80
|
printError,
|
|
81
81
|
toEnumerableError
|
|
82
|
-
} from "../../chunks/chunk-
|
|
82
|
+
} from "../../chunks/chunk-EJ6GQI6F.js";
|
|
83
83
|
import {
|
|
84
84
|
CantParseJSONFile,
|
|
85
85
|
cmd,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
getCommandNamePlain,
|
|
88
88
|
packageName,
|
|
89
89
|
require_lib as require_lib2
|
|
90
|
-
} from "../../chunks/chunk-
|
|
90
|
+
} from "../../chunks/chunk-P6AK7SVK.js";
|
|
91
91
|
import {
|
|
92
92
|
pkg_default
|
|
93
93
|
} from "../../chunks/chunk-P4QNYOFB.js";
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
emoji,
|
|
97
97
|
output_manager_default,
|
|
98
98
|
prependEmoji
|
|
99
|
-
} from "../../chunks/chunk-
|
|
99
|
+
} from "../../chunks/chunk-OX7KI3LF.js";
|
|
100
100
|
import "../../chunks/chunk-GGP5R3FU.js";
|
|
101
101
|
import {
|
|
102
102
|
require_source
|
|
@@ -1492,7 +1492,10 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1492
1492
|
if (hasNonEmptyObject(outputConfig?.experimentalServicesV2) && !hasNonEmptyObject(buildOutputConfig.experimentalServicesV2)) {
|
|
1493
1493
|
buildOutputConfig.experimentalServicesV2 = outputConfig.experimentalServicesV2;
|
|
1494
1494
|
}
|
|
1495
|
-
if (
|
|
1495
|
+
if (hasGeneratedServicesConfig(outputConfig) && !hasGeneratedServicesConfig(buildOutputConfig)) {
|
|
1496
|
+
buildOutputConfig.services = outputConfig.services;
|
|
1497
|
+
}
|
|
1498
|
+
if (hasNonEmptyObject(buildOutputConfig.experimentalServices) || hasNonEmptyObject(buildOutputConfig.experimentalServicesV2) || hasGeneratedServicesConfig(buildOutputConfig)) {
|
|
1496
1499
|
await import_fs_extra2.default.writeJSON(buildOutputConfigPath, buildOutputConfig, {
|
|
1497
1500
|
spaces: 2
|
|
1498
1501
|
});
|
|
@@ -1627,7 +1630,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1627
1630
|
}
|
|
1628
1631
|
generatedConfigs.push(defaultGeneratedConfig);
|
|
1629
1632
|
}
|
|
1630
|
-
const
|
|
1633
|
+
const generatedServicesConfig = getGeneratedServicesConfig([
|
|
1631
1634
|
...generatedConfigs,
|
|
1632
1635
|
...buildResults.values()
|
|
1633
1636
|
]);
|
|
@@ -1635,21 +1638,21 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1635
1638
|
...generatedConfigs,
|
|
1636
1639
|
...buildResults.values()
|
|
1637
1640
|
]);
|
|
1638
|
-
if (
|
|
1639
|
-
if (
|
|
1641
|
+
if (generatedServicesConfig || generatedExperimentalServicesV1Config) {
|
|
1642
|
+
if (generatedServicesConfig) {
|
|
1640
1643
|
nestExperimentalServicesV2Output = true;
|
|
1641
1644
|
}
|
|
1642
1645
|
detectedExperimentalServicesV1Config = generatedExperimentalServicesV1Config;
|
|
1643
|
-
detectedExperimentalServicesV2Config =
|
|
1644
|
-
detectedExperimentalServicesV2RootRoutes =
|
|
1645
|
-
(config2) => hasNonEmptyObject(config2?.experimentalServicesV2) && Array.isArray(config2?.routes)
|
|
1646
|
+
detectedExperimentalServicesV2Config = generatedServicesConfig;
|
|
1647
|
+
detectedExperimentalServicesV2RootRoutes = generatedServicesConfig ? generatedConfigs.find(
|
|
1648
|
+
(config2) => (hasGeneratedServicesConfig(config2) || hasNonEmptyObject(config2?.experimentalServicesV2)) && Array.isArray(config2?.routes)
|
|
1646
1649
|
)?.routes : void 0;
|
|
1647
1650
|
const generatedBuilders = await span.child("vc.detectGeneratedServices").trace(
|
|
1648
1651
|
() => (0, import_fs_detectors2.detectBuilders)(files, pkg, {
|
|
1649
1652
|
...localConfig,
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
experimentalServicesV2:
|
|
1653
|
+
...generatedServicesConfig ? {
|
|
1654
|
+
services: generatedServicesConfig,
|
|
1655
|
+
experimentalServicesV2: void 0
|
|
1653
1656
|
} : {
|
|
1654
1657
|
experimentalServicesV2: void 0,
|
|
1655
1658
|
experimentalServices: generatedExperimentalServicesV1Config
|
|
@@ -1696,7 +1699,7 @@ async function doBuild(client, project, buildsJson, cwd, outputDir, span, standa
|
|
|
1696
1699
|
for (const service of detectedResolvedServices || []) {
|
|
1697
1700
|
const alreadyExecutedBuild = getAlreadyExecutedBuild(service.builder);
|
|
1698
1701
|
if (alreadyExecutedBuild) {
|
|
1699
|
-
if (
|
|
1702
|
+
if (generatedServicesConfig) {
|
|
1700
1703
|
output_manager_default.warn(getGeneratedServiceAlreadyBuiltWarning(service));
|
|
1701
1704
|
continue;
|
|
1702
1705
|
}
|
|
@@ -2266,8 +2269,14 @@ function getGeneratedExperimentalServicesV1Config(buildResults) {
|
|
|
2266
2269
|
}
|
|
2267
2270
|
return void 0;
|
|
2268
2271
|
}
|
|
2269
|
-
function
|
|
2272
|
+
function hasGeneratedServicesConfig(result) {
|
|
2273
|
+
return result != null && "services" in result && hasNonEmptyObject(result.services);
|
|
2274
|
+
}
|
|
2275
|
+
function getGeneratedServicesConfig(buildResults) {
|
|
2270
2276
|
for (const result of buildResults) {
|
|
2277
|
+
if (hasGeneratedServicesConfig(result)) {
|
|
2278
|
+
return result.services;
|
|
2279
|
+
}
|
|
2271
2280
|
if (result && "experimentalServicesV2" in result && hasNonEmptyObject(result.experimentalServicesV2)) {
|
|
2272
2281
|
return result.experimentalServicesV2;
|
|
2273
2282
|
}
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
purchaseDomainIfAvailable,
|
|
14
14
|
require_cjs,
|
|
15
15
|
setupDomain
|
|
16
|
-
} from "../../chunks/chunk-
|
|
16
|
+
} from "../../chunks/chunk-PVEWOY25.js";
|
|
17
17
|
import {
|
|
18
18
|
readLocalConfig
|
|
19
|
-
} from "../../chunks/chunk-
|
|
19
|
+
} from "../../chunks/chunk-HX52W7S3.js";
|
|
20
20
|
import {
|
|
21
21
|
highlight
|
|
22
22
|
} from "../../chunks/chunk-V5P25P7F.js";
|
|
23
|
-
import "../../chunks/chunk-
|
|
23
|
+
import "../../chunks/chunk-XBN2O34P.js";
|
|
24
24
|
import {
|
|
25
25
|
parseMeta
|
|
26
26
|
} from "../../chunks/chunk-EKPSCRJZ.js";
|
|
27
27
|
import {
|
|
28
28
|
getDeployment,
|
|
29
29
|
mapCertError
|
|
30
|
-
} from "../../chunks/chunk-
|
|
30
|
+
} from "../../chunks/chunk-SGL3NMOP.js";
|
|
31
31
|
import {
|
|
32
32
|
validateJsonOutput
|
|
33
33
|
} from "../../chunks/chunk-XPKWKPWA.js";
|
|
@@ -40,41 +40,41 @@ import {
|
|
|
40
40
|
deprecatedArchiveSplitTgz,
|
|
41
41
|
getCommandAliases,
|
|
42
42
|
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-
|
|
43
|
+
} from "../../chunks/chunk-ZSIRCJYY.js";
|
|
44
|
+
import "../../chunks/chunk-MAJWH2PD.js";
|
|
45
|
+
import "../../chunks/chunk-EFUR47FZ.js";
|
|
46
|
+
import "../../chunks/chunk-UJ5UEAMC.js";
|
|
47
|
+
import "../../chunks/chunk-D2M77YVC.js";
|
|
48
|
+
import "../../chunks/chunk-OGJB2GHI.js";
|
|
49
|
+
import "../../chunks/chunk-DFEUWDGM.js";
|
|
50
|
+
import "../../chunks/chunk-FNRZFHFO.js";
|
|
51
51
|
import {
|
|
52
52
|
pickOverrides
|
|
53
|
-
} from "../../chunks/chunk-
|
|
54
|
-
import "../../chunks/chunk-
|
|
53
|
+
} from "../../chunks/chunk-URDZ7T57.js";
|
|
54
|
+
import "../../chunks/chunk-NJUPUGOE.js";
|
|
55
55
|
import {
|
|
56
56
|
stamp_default
|
|
57
57
|
} from "../../chunks/chunk-64IF634X.js";
|
|
58
58
|
import "../../chunks/chunk-VXYGCOKL.js";
|
|
59
59
|
import {
|
|
60
60
|
ensureLink
|
|
61
|
-
} from "../../chunks/chunk-
|
|
61
|
+
} from "../../chunks/chunk-5WXBM2VM.js";
|
|
62
62
|
import {
|
|
63
63
|
validatePaths,
|
|
64
64
|
validateRootDirectory
|
|
65
|
-
} from "../../chunks/chunk-
|
|
65
|
+
} from "../../chunks/chunk-3JUR5ASZ.js";
|
|
66
66
|
import {
|
|
67
67
|
AGENT_STATUS
|
|
68
68
|
} from "../../chunks/chunk-QH7WYDEP.js";
|
|
69
|
-
import "../../chunks/chunk-
|
|
70
|
-
import "../../chunks/chunk-
|
|
71
|
-
import "../../chunks/chunk-
|
|
69
|
+
import "../../chunks/chunk-7AHJ2INY.js";
|
|
70
|
+
import "../../chunks/chunk-MFB7HREA.js";
|
|
71
|
+
import "../../chunks/chunk-X3QZP7HG.js";
|
|
72
72
|
import {
|
|
73
73
|
help
|
|
74
|
-
} from "../../chunks/chunk-
|
|
74
|
+
} from "../../chunks/chunk-YSIZGIDP.js";
|
|
75
75
|
import {
|
|
76
76
|
table
|
|
77
|
-
} from "../../chunks/chunk-
|
|
77
|
+
} from "../../chunks/chunk-VKBYAWTL.js";
|
|
78
78
|
import {
|
|
79
79
|
compileVercelConfig,
|
|
80
80
|
createGitMeta,
|
|
@@ -85,19 +85,19 @@ import {
|
|
|
85
85
|
require_dist as require_dist2,
|
|
86
86
|
require_frameworks,
|
|
87
87
|
require_lib
|
|
88
|
-
} from "../../chunks/chunk-
|
|
88
|
+
} from "../../chunks/chunk-DNEOCFVV.js";
|
|
89
89
|
import {
|
|
90
90
|
outputAgentError
|
|
91
|
-
} from "../../chunks/chunk-
|
|
91
|
+
} from "../../chunks/chunk-IZOHLD5D.js";
|
|
92
92
|
import {
|
|
93
93
|
TelemetryClient
|
|
94
|
-
} from "../../chunks/chunk-
|
|
94
|
+
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
95
95
|
import {
|
|
96
96
|
getCommandNameWithGlobalFlags,
|
|
97
97
|
getFlagsSpecification,
|
|
98
98
|
parseArguments,
|
|
99
99
|
printError
|
|
100
|
-
} from "../../chunks/chunk-
|
|
100
|
+
} from "../../chunks/chunk-EJ6GQI6F.js";
|
|
101
101
|
import {
|
|
102
102
|
AliasDomainConfigured,
|
|
103
103
|
BuildError,
|
|
@@ -123,15 +123,16 @@ import {
|
|
|
123
123
|
getCommandName,
|
|
124
124
|
isAPIError,
|
|
125
125
|
require_bytes
|
|
126
|
-
} from "../../chunks/chunk-
|
|
126
|
+
} from "../../chunks/chunk-P6AK7SVK.js";
|
|
127
127
|
import "../../chunks/chunk-P4QNYOFB.js";
|
|
128
128
|
import "../../chunks/chunk-2RVK3DDN.js";
|
|
129
129
|
import {
|
|
130
130
|
emoji,
|
|
131
|
+
link_default,
|
|
131
132
|
output_manager_default,
|
|
132
133
|
prependEmoji,
|
|
133
134
|
require_dist
|
|
134
|
-
} from "../../chunks/chunk-
|
|
135
|
+
} from "../../chunks/chunk-OX7KI3LF.js";
|
|
135
136
|
import {
|
|
136
137
|
require_ms
|
|
137
138
|
} from "../../chunks/chunk-GGP5R3FU.js";
|
|
@@ -208,7 +209,12 @@ async function createDeploy(client, now, contextName, path, createArgs, org, isS
|
|
|
208
209
|
throw new NotDomainOwner(err.message);
|
|
209
210
|
}
|
|
210
211
|
if (err.code === "builds_rate_limited") {
|
|
211
|
-
throw new BuildsRateLimited(err.message
|
|
212
|
+
throw new BuildsRateLimited(err.message, {
|
|
213
|
+
ctaLabel: err.ctaLabel,
|
|
214
|
+
ctaUrl: err.ctaUrl,
|
|
215
|
+
action: err.action,
|
|
216
|
+
link: err.link
|
|
217
|
+
});
|
|
212
218
|
}
|
|
213
219
|
if (err.code === "forbidden") {
|
|
214
220
|
throw new DomainPermissionDenied(err.value, contextName);
|
|
@@ -350,6 +356,17 @@ function getProjectName({
|
|
|
350
356
|
return basename(paths[0] || "");
|
|
351
357
|
}
|
|
352
358
|
|
|
359
|
+
// src/util/get-error-cta.ts
|
|
360
|
+
function getErrorCta(source) {
|
|
361
|
+
if (typeof source.ctaLabel === "string" && typeof source.ctaUrl === "string") {
|
|
362
|
+
return { label: source.ctaLabel, url: source.ctaUrl };
|
|
363
|
+
}
|
|
364
|
+
if (typeof source.action === "string" && typeof source.link === "string") {
|
|
365
|
+
return { label: source.action, url: source.link };
|
|
366
|
+
}
|
|
367
|
+
return void 0;
|
|
368
|
+
}
|
|
369
|
+
|
|
353
370
|
// src/util/telemetry/commands/deploy/index.ts
|
|
354
371
|
var import_client2 = __toESM(require_dist2(), 1);
|
|
355
372
|
var DeployTelemetryClient = class extends TelemetryClient {
|
|
@@ -2096,8 +2113,9 @@ function handleCreateDeployError(error, localConfig) {
|
|
|
2096
2113
|
}
|
|
2097
2114
|
if (error instanceof BuildsRateLimited) {
|
|
2098
2115
|
output_manager_default.error(error.message);
|
|
2116
|
+
const cta = getErrorCta(error.meta);
|
|
2099
2117
|
output_manager_default.note(
|
|
2100
|
-
|
|
2118
|
+
cta ? `${cta.label}: ${link_default(cta.url)}` : "Upgrade your plan to increase your builds limit."
|
|
2101
2119
|
);
|
|
2102
2120
|
return 1;
|
|
2103
2121
|
}
|
|
@@ -85,13 +85,20 @@ async function processMessage(message) {
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
// Container Lambdas carry an OCI image reference in `handler`, not a code
|
|
89
|
+
// bundle, so there is nothing to zip. They are built and run locally by the
|
|
90
|
+
// builder's `startDevServer`; calling `createZip()` on them would throw since
|
|
91
|
+
// the output is a plain image-reference object.
|
|
92
|
+
const isZippableLambda = output =>
|
|
93
|
+
output.type === 'Lambda' && output.runtime !== 'container';
|
|
94
|
+
|
|
88
95
|
if (effectiveVersion === 3) {
|
|
89
|
-
if (result.output
|
|
96
|
+
if (isZippableLambda(result.output)) {
|
|
90
97
|
await processLambdaOutput(result.output);
|
|
91
98
|
}
|
|
92
99
|
} else {
|
|
93
100
|
for (const output of Object.values(result.output)) {
|
|
94
|
-
if (output
|
|
101
|
+
if (isZippableLambda(output)) {
|
|
95
102
|
await processLambdaOutput(output);
|
|
96
103
|
}
|
|
97
104
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../../chunks/chunk-2HSQ7YUK.js";
|
|
10
10
|
import {
|
|
11
11
|
getUpdateCommand
|
|
12
|
-
} from "../../chunks/chunk-
|
|
12
|
+
} from "../../chunks/chunk-VAU35QDZ.js";
|
|
13
13
|
import {
|
|
14
14
|
highlight
|
|
15
15
|
} from "../../chunks/chunk-V5P25P7F.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "../../chunks/chunk-YPQSDAEW.js";
|
|
19
19
|
import {
|
|
20
20
|
devCommand
|
|
21
|
-
} from "../../chunks/chunk-
|
|
21
|
+
} from "../../chunks/chunk-DFEUWDGM.js";
|
|
22
22
|
import {
|
|
23
23
|
OUTPUT_DIR,
|
|
24
24
|
getStaticServiceSchedules,
|
|
@@ -26,27 +26,27 @@ import {
|
|
|
26
26
|
require_mime_types,
|
|
27
27
|
require_npa,
|
|
28
28
|
staticFiles
|
|
29
|
-
} from "../../chunks/chunk-
|
|
29
|
+
} from "../../chunks/chunk-TQ4ZOHJH.js";
|
|
30
30
|
import "../../chunks/chunk-IB5L4LKZ.js";
|
|
31
31
|
import {
|
|
32
32
|
pickOverrides
|
|
33
|
-
} from "../../chunks/chunk-
|
|
34
|
-
import "../../chunks/chunk-
|
|
33
|
+
} from "../../chunks/chunk-URDZ7T57.js";
|
|
34
|
+
import "../../chunks/chunk-24FCBXI4.js";
|
|
35
35
|
import {
|
|
36
36
|
displayDetectedServices,
|
|
37
37
|
printProjectNotFoundError,
|
|
38
38
|
readConfig,
|
|
39
39
|
setupAndLink
|
|
40
|
-
} from "../../chunks/chunk-
|
|
40
|
+
} from "../../chunks/chunk-3JUR5ASZ.js";
|
|
41
41
|
import "../../chunks/chunk-QH7WYDEP.js";
|
|
42
42
|
import {
|
|
43
43
|
getLocalPathConfig
|
|
44
|
-
} from "../../chunks/chunk-
|
|
45
|
-
import "../../chunks/chunk-
|
|
44
|
+
} from "../../chunks/chunk-7AHJ2INY.js";
|
|
45
|
+
import "../../chunks/chunk-X3QZP7HG.js";
|
|
46
46
|
import {
|
|
47
47
|
help
|
|
48
|
-
} from "../../chunks/chunk-
|
|
49
|
-
import "../../chunks/chunk-
|
|
48
|
+
} from "../../chunks/chunk-YSIZGIDP.js";
|
|
49
|
+
import "../../chunks/chunk-VKBYAWTL.js";
|
|
50
50
|
import {
|
|
51
51
|
VERCEL_DIR,
|
|
52
52
|
VERCEL_OIDC_TOKEN,
|
|
@@ -71,19 +71,19 @@ import {
|
|
|
71
71
|
resolveProjectCwd,
|
|
72
72
|
tryDetectServices,
|
|
73
73
|
validateConfig
|
|
74
|
-
} from "../../chunks/chunk-
|
|
74
|
+
} from "../../chunks/chunk-DNEOCFVV.js";
|
|
75
75
|
import {
|
|
76
76
|
buildCommandWithYes,
|
|
77
77
|
outputActionRequired
|
|
78
|
-
} from "../../chunks/chunk-
|
|
78
|
+
} from "../../chunks/chunk-IZOHLD5D.js";
|
|
79
79
|
import {
|
|
80
80
|
TelemetryClient
|
|
81
|
-
} from "../../chunks/chunk-
|
|
81
|
+
} from "../../chunks/chunk-ECCWJHC6.js";
|
|
82
82
|
import {
|
|
83
83
|
getFlagsSpecification,
|
|
84
84
|
parseArguments,
|
|
85
85
|
printError
|
|
86
|
-
} from "../../chunks/chunk-
|
|
86
|
+
} from "../../chunks/chunk-EJ6GQI6F.js";
|
|
87
87
|
import {
|
|
88
88
|
CantParseJSONFile,
|
|
89
89
|
LambdaSizeExceededError,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
getTitleName,
|
|
96
96
|
packageName,
|
|
97
97
|
require_bytes
|
|
98
|
-
} from "../../chunks/chunk-
|
|
98
|
+
} from "../../chunks/chunk-P6AK7SVK.js";
|
|
99
99
|
import "../../chunks/chunk-P4QNYOFB.js";
|
|
100
100
|
import {
|
|
101
101
|
Headers,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
link_default,
|
|
106
106
|
output_manager_default,
|
|
107
107
|
require_dist
|
|
108
|
-
} from "../../chunks/chunk-
|
|
108
|
+
} from "../../chunks/chunk-OX7KI3LF.js";
|
|
109
109
|
import {
|
|
110
110
|
require_ms
|
|
111
111
|
} from "../../chunks/chunk-GGP5R3FU.js";
|
|
@@ -17723,7 +17723,10 @@ Please run \`${await getUpdateCommand()}\` to update to the latest CLI.`
|
|
|
17723
17723
|
}
|
|
17724
17724
|
const maxLambdaBytes = (0, import_bytes.default)("50mb");
|
|
17725
17725
|
for (const asset of Object.values(result.output)) {
|
|
17726
|
-
if (asset.type === "Lambda" && !(typeof asset.runtime === "string" && asset.runtime.startsWith("python"))
|
|
17726
|
+
if (asset.type === "Lambda" && !(typeof asset.runtime === "string" && asset.runtime.startsWith("python")) && // Container Lambdas carry an OCI image reference in `handler`, not a code
|
|
17727
|
+
// bundle — there is no zip to size-check. They are built and run locally
|
|
17728
|
+
// by the builder's `startDevServer`, not by `fun`.
|
|
17729
|
+
asset.runtime !== "container") {
|
|
17727
17730
|
const size = asset.zipBuffer.length;
|
|
17728
17731
|
if (size > maxLambdaBytes) {
|
|
17729
17732
|
throw new LambdaSizeExceededError(size, maxLambdaBytes);
|
|
@@ -17734,7 +17737,7 @@ Please run \`${await getUpdateCommand()}\` to update to the latest CLI.`
|
|
|
17734
17737
|
Object.entries(result.output).map(async (entry) => {
|
|
17735
17738
|
const path6 = entry[0];
|
|
17736
17739
|
const asset = entry[1];
|
|
17737
|
-
if (asset.type === "Lambda") {
|
|
17740
|
+
if (asset.type === "Lambda" && asset.runtime !== "container") {
|
|
17738
17741
|
const oldAsset = match.buildOutput && match.buildOutput[path6];
|
|
17739
17742
|
if (oldAsset && oldAsset.type === "Lambda" && oldAsset.fn) {
|
|
17740
17743
|
await oldAsset.fn.destroy();
|
|
@@ -17821,6 +17824,20 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
|
|
|
17821
17824
|
mapToEntrypoint.set(src, originalSrc);
|
|
17822
17825
|
}
|
|
17823
17826
|
}
|
|
17827
|
+
if (buildConfig.config?.framework === "container" && !fileList.includes(src)) {
|
|
17828
|
+
const originalSrc = src;
|
|
17829
|
+
const dockerfileCandidates = [
|
|
17830
|
+
"Dockerfile.vercel",
|
|
17831
|
+
"Containerfile.vercel",
|
|
17832
|
+
"Dockerfile",
|
|
17833
|
+
"Containerfile"
|
|
17834
|
+
];
|
|
17835
|
+
const existing = dockerfileCandidates.find((p) => fileList.includes(p));
|
|
17836
|
+
if (existing) {
|
|
17837
|
+
src = existing;
|
|
17838
|
+
mapToEntrypoint.set(src, originalSrc);
|
|
17839
|
+
}
|
|
17840
|
+
}
|
|
17824
17841
|
const extensionless = devServer.getExtensionlessFile(src);
|
|
17825
17842
|
if (extensionless) {
|
|
17826
17843
|
mapToEntrypoint.set(extensionless, src);
|
|
@@ -20741,7 +20758,7 @@ Please ensure that ${cmd(err.path)} is properly installed`;
|
|
|
20741
20758
|
return void 0;
|
|
20742
20759
|
}
|
|
20743
20760
|
async _getVercelConfig() {
|
|
20744
|
-
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-
|
|
20761
|
+
const { compileVercelConfig } = await import("../../chunks/compile-vercel-config-SH26SIEE.js");
|
|
20745
20762
|
await compileVercelConfig(this.cwd);
|
|
20746
20763
|
const configPath = getLocalPathConfig(this.cwd);
|
|
20747
20764
|
const [
|