@geekmidas/cli 10.0.0-alpha.171 → 10.0.0-alpha.173
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/{GoDaddyProvider-Cs32wo6I.cjs → GoDaddyProvider-CogJfGVY.cjs} +7 -7
- package/dist/{GoDaddyProvider-Cs32wo6I.cjs.map → GoDaddyProvider-CogJfGVY.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-D7CTqN0f.mjs → GoDaddyProvider-uJkNjoF6.mjs} +2 -2
- package/dist/{GoDaddyProvider-D7CTqN0f.mjs.map → GoDaddyProvider-uJkNjoF6.mjs.map} +1 -1
- package/dist/{HostingerProvider-B_3Qs9mT.mjs → HostingerProvider-DJFdGv-x.mjs} +2 -2
- package/dist/{HostingerProvider-B_3Qs9mT.mjs.map → HostingerProvider-DJFdGv-x.mjs.map} +1 -1
- package/dist/{HostingerProvider-D0515Stf.cjs → HostingerProvider-DQEv1dim.cjs} +4 -4
- package/dist/{HostingerProvider-D0515Stf.cjs.map → HostingerProvider-DQEv1dim.cjs.map} +1 -1
- package/dist/{LegacyStateStore-CUjKKENQ.mjs → LegacyStateStore-CEAYSDxQ.mjs} +2 -2
- package/dist/{LegacyStateStore-CUjKKENQ.mjs.map → LegacyStateStore-CEAYSDxQ.mjs.map} +1 -1
- package/dist/{LegacyStateStore-Bv_2L86H.cjs → LegacyStateStore-Du-QYvvW.cjs} +2 -2
- package/dist/{LegacyStateStore-Bv_2L86H.cjs.map → LegacyStateStore-Du-QYvvW.cjs.map} +1 -1
- package/dist/{LocalStateStore-PQ2qJ5VF.cjs → LocalStateStore-CBnOEVUw.cjs} +2 -2
- package/dist/{LocalStateStore-PQ2qJ5VF.cjs.map → LocalStateStore-CBnOEVUw.cjs.map} +1 -1
- package/dist/{LocalStateStore-DXuj1BDq.mjs → LocalStateStore-DyqbqdrE.mjs} +2 -2
- package/dist/{LocalStateStore-DXuj1BDq.mjs.map → LocalStateStore-DyqbqdrE.mjs.map} +1 -1
- package/dist/{S3StateStore-cmS6iUZn.cjs → S3StateStore-BPPv8S_Q.cjs} +5 -5
- package/dist/{S3StateStore-cmS6iUZn.cjs.map → S3StateStore-BPPv8S_Q.cjs.map} +1 -1
- package/dist/{S3StateStore-BGnOwqUp.mjs → S3StateStore-CQ2kN1Pb.mjs} +4 -4
- package/dist/{S3StateStore-BGnOwqUp.mjs.map → S3StateStore-CQ2kN1Pb.mjs.map} +1 -1
- package/dist/{SSMStateStore-BtNGbg8Z.cjs → SSMStateStore-CHy4p884.cjs} +2 -2
- package/dist/{SSMStateStore-BtNGbg8Z.cjs.map → SSMStateStore-CHy4p884.cjs.map} +1 -1
- package/dist/{SSMStateStore-BqXzPBbu.mjs → SSMStateStore-Ca1_Tv6e.mjs} +2 -2
- package/dist/{SSMStateStore-BqXzPBbu.mjs.map → SSMStateStore-Ca1_Tv6e.mjs.map} +1 -1
- package/dist/{add-Dp5xRn-u.cjs → add-nvNmOV4h.cjs} +7 -7
- package/dist/{add-Dp5xRn-u.cjs.map → add-nvNmOV4h.cjs.map} +1 -1
- package/dist/{add-DW2KLCY0.mjs → add-wFkYMhYc.mjs} +5 -5
- package/dist/{add-DW2KLCY0.mjs.map → add-wFkYMhYc.mjs.map} +1 -1
- package/dist/{apps-DYGKg5SP.cjs → apps-CnTjkv-C.cjs} +9 -9
- package/dist/{apps-DYGKg5SP.cjs.map → apps-CnTjkv-C.cjs.map} +1 -1
- package/dist/{apps-DrXwv-0A.mjs → apps-Dh2ito9T.mjs} +4 -4
- package/dist/{apps-DrXwv-0A.mjs.map → apps-Dh2ito9T.mjs.map} +1 -1
- package/dist/{bundler-Swt8wHG9.mjs → bundler-BXS0AEtM.mjs} +6 -6
- package/dist/{bundler-Swt8wHG9.mjs.map → bundler-BXS0AEtM.mjs.map} +1 -1
- package/dist/{bundler-BIfEe05e.cjs → bundler-B_2Mxi7l.cjs} +9 -9
- package/dist/{bundler-BIfEe05e.cjs.map → bundler-B_2Mxi7l.cjs.map} +1 -1
- package/dist/{cli-C9wdKQy_.mjs → cli-CuCePKEc.mjs} +4 -4
- package/dist/{cli-C9wdKQy_.mjs.map → cli-CuCePKEc.mjs.map} +1 -1
- package/dist/{cli-ohJToj0E.cjs → cli-Dew5Ay8s.cjs} +6 -6
- package/dist/{cli-ohJToj0E.cjs.map → cli-Dew5Ay8s.cjs.map} +1 -1
- package/dist/{compose-Br3SQ2bW.cjs → compose-B6emrIOB.cjs} +27 -27
- package/dist/compose-B6emrIOB.cjs.map +1 -0
- package/dist/{compose-BLOnkeaJ.mjs → compose-Cfd5-ubC.mjs} +42 -16
- package/dist/compose-Cfd5-ubC.mjs.map +1 -0
- package/dist/{compose-SNYBstbO.cjs → compose-CpAmz8GF.cjs} +54 -28
- package/dist/compose-CpAmz8GF.cjs.map +1 -0
- package/dist/{compose-iUOeazjW.mjs → compose-DxreKQnX.mjs} +10 -10
- package/dist/compose-DxreKQnX.mjs.map +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.mjs +1 -1
- package/dist/deploy/public.cjs +20 -20
- package/dist/deploy/public.cjs.map +1 -1
- package/dist/deploy/public.mjs +11 -11
- package/dist/{deploy-DqH8QReb.mjs → deploy-CV-e75Ja.mjs} +14 -25
- package/dist/deploy-CV-e75Ja.mjs.map +1 -0
- package/dist/{deploy-CYyf-Q8N.cjs → deploy-Cy2mXTnI.cjs} +55 -66
- package/dist/deploy-Cy2mXTnI.cjs.map +1 -0
- package/dist/{destroy-B9myEYFT.mjs → destroy-DQllGEWe.mjs} +9 -9
- package/dist/{destroy-B9myEYFT.mjs.map → destroy-DQllGEWe.mjs.map} +1 -1
- package/dist/{destroy-Bp5iHtLf.cjs → destroy-DjUM1nDI.cjs} +24 -24
- package/dist/{destroy-Bp5iHtLf.cjs.map → destroy-DjUM1nDI.cjs.map} +1 -1
- package/dist/{credentials-C2VfI-uf.mjs → dns-DPHKct-l.mjs} +123 -123
- package/dist/dns-DPHKct-l.mjs.map +1 -0
- package/dist/{credentials-BdZhygvW.cjs → dns-efZTlePp.cjs} +122 -122
- package/dist/dns-efZTlePp.cjs.map +1 -0
- package/dist/{docker-BezTRGxN.cjs → docker-1hv2ehU4.cjs} +7 -7
- package/dist/{docker-BezTRGxN.cjs.map → docker-1hv2ehU4.cjs.map} +1 -1
- package/dist/{docker-De_-Ll-A.mjs → docker-CeGpTbYR.mjs} +5 -5
- package/dist/{docker-De_-Ll-A.mjs.map → docker-CeGpTbYR.mjs.map} +1 -1
- package/dist/{dokploy-EsBgWO8W.mjs → dokploy-Cdy9uxyT.mjs} +2 -2
- package/dist/{dokploy-EsBgWO8W.mjs.map → dokploy-Cdy9uxyT.mjs.map} +1 -1
- package/dist/{dokploy-CWCIqro_.cjs → dokploy-DMCSZX9P.cjs} +2 -2
- package/dist/{dokploy-CWCIqro_.cjs.map → dokploy-DMCSZX9P.cjs.map} +1 -1
- package/dist/{eas-8t6PJRni.cjs → eas-B3vFP-9c.cjs} +3 -3
- package/dist/{eas-8t6PJRni.cjs.map → eas-B3vFP-9c.cjs.map} +1 -1
- package/dist/{eas-BalvsiH5.mjs → eas-KsVb80gp.mjs} +3 -3
- package/dist/{eas-BalvsiH5.mjs.map → eas-KsVb80gp.mjs.map} +1 -1
- package/dist/{encryption-CKBmU66R.cjs → encryption-BYpdYmaT.cjs} +6 -6
- package/dist/{encryption-CKBmU66R.cjs.map → encryption-BYpdYmaT.cjs.map} +1 -1
- package/dist/{encryption-B4mWxt4G.mjs → encryption-d_vz6csy.mjs} +3 -3
- package/dist/{encryption-B4mWxt4G.mjs.map → encryption-d_vz6csy.mjs.map} +1 -1
- package/dist/{engine-y8iWIXuv.mjs → engine-CQTK8HEF.mjs} +9 -9
- package/dist/{engine-y8iWIXuv.mjs.map → engine-CQTK8HEF.mjs.map} +1 -1
- package/dist/{engine-BTG46RG-.cjs → engine-DIzP1hty.cjs} +58 -58
- package/dist/{engine-BTG46RG-.cjs.map → engine-DIzP1hty.cjs.map} +1 -1
- package/dist/{github-CeXlzWWA.cjs → github-Chr0rEy5.cjs} +16 -16
- package/dist/{github-CeXlzWWA.cjs.map → github-Chr0rEy5.cjs.map} +1 -1
- package/dist/{github-DvGoKoQO.mjs → github-Ctmgt1Zv.mjs} +7 -7
- package/dist/{github-DvGoKoQO.mjs.map → github-Ctmgt1Zv.mjs.map} +1 -1
- package/dist/{googlePlay-CfzG7jOJ.cjs → googlePlay-C50ZneV3.cjs} +5 -5
- package/dist/{googlePlay-CfzG7jOJ.cjs.map → googlePlay-C50ZneV3.cjs.map} +1 -1
- package/dist/{googlePlay-DWv6CUgM.mjs → googlePlay-D5kL9gs5.mjs} +4 -4
- package/dist/{googlePlay-DWv6CUgM.mjs.map → googlePlay-D5kL9gs5.mjs.map} +1 -1
- package/dist/{iam-FA95ku7l.cjs → iam-CGd_oEyz.cjs} +2 -2
- package/dist/{iam-FA95ku7l.cjs.map → iam-CGd_oEyz.cjs.map} +1 -1
- package/dist/{iam-BE0qX5Lb.mjs → iam-Cs2Ph5f2.mjs} +2 -2
- package/dist/{iam-BE0qX5Lb.mjs.map → iam-Cs2Ph5f2.mjs.map} +1 -1
- package/dist/index.cjs +108 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +62 -63
- package/dist/index.mjs.map +1 -1
- package/dist/{local-DH9at_0c.cjs → local-CxqlHyVX.cjs} +3 -3
- package/dist/{local-DH9at_0c.cjs.map → local-CxqlHyVX.cjs.map} +1 -1
- package/dist/{local-CvRvfktv.mjs → local-Cy6Bb9ta.mjs} +2 -2
- package/dist/{local-CvRvfktv.mjs.map → local-Cy6Bb9ta.mjs.map} +1 -1
- package/dist/{migrate-B1lHo2K2.cjs → migrate-C7AEA5wP.cjs} +6 -6
- package/dist/{migrate-B1lHo2K2.cjs.map → migrate-C7AEA5wP.cjs.map} +1 -1
- package/dist/{migrate-D1iCmQgc.mjs → migrate-DB1lxrIj.mjs} +5 -5
- package/dist/{migrate-D1iCmQgc.mjs.map → migrate-DB1lxrIj.mjs.map} +1 -1
- package/dist/{migrate-NmW2Su8s.mjs → migrate-DU_BqEwZ.mjs} +3 -3
- package/dist/{migrate-NmW2Su8s.mjs.map → migrate-DU_BqEwZ.mjs.map} +1 -1
- package/dist/{migrate-DzOWCnRR.cjs → migrate-uYiBDHF4.cjs} +6 -6
- package/dist/{migrate-DzOWCnRR.cjs.map → migrate-uYiBDHF4.cjs.map} +1 -1
- package/dist/{notes-BdIY7IoB.mjs → notes-C23PJFnm.mjs} +3 -3
- package/dist/{notes-BdIY7IoB.mjs.map → notes-C23PJFnm.mjs.map} +1 -1
- package/dist/{notes-ikElBCC8.cjs → notes-DOj8AhIz.cjs} +3 -3
- package/dist/{notes-ikElBCC8.cjs.map → notes-DOj8AhIz.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-uidxz03Q.cjs → projectBucket-BNxobT1q.cjs} +2 -2
- package/dist/{projectBucket-uidxz03Q.cjs.map → projectBucket-BNxobT1q.cjs.map} +1 -1
- package/dist/{projectBucket-C-FOIic4.mjs → projectBucket-BpwAxov3.mjs} +2 -2
- package/dist/{projectBucket-C-FOIic4.mjs.map → projectBucket-BpwAxov3.mjs.map} +1 -1
- package/dist/{publish-Ujng6o63.mjs → publish-CM2A0e24.mjs} +2 -2
- package/dist/{publish-Ujng6o63.mjs.map → publish-CM2A0e24.mjs.map} +1 -1
- package/dist/{publish-oO_8elIf.cjs → publish-DaFTebR5.cjs} +2 -2
- package/dist/{publish-oO_8elIf.cjs.map → publish-DaFTebR5.cjs.map} +1 -1
- package/dist/{resolve-Lk7fd8Kb.mjs → resolve-DO6xu8Da.mjs} +4 -4
- package/dist/{resolve-Lk7fd8Kb.mjs.map → resolve-DO6xu8Da.mjs.map} +1 -1
- package/dist/{resolve-CTb1gsTO.cjs → resolve-DgHrtRXG.cjs} +4 -4
- package/dist/{resolve-CTb1gsTO.cjs.map → resolve-DgHrtRXG.cjs.map} +1 -1
- package/dist/{rollback-PK4pSOLd.cjs → rollback-6Idn2ozU.cjs} +9 -9
- package/dist/{rollback-PK4pSOLd.cjs.map → rollback-6Idn2ozU.cjs.map} +1 -1
- package/dist/{rollback-B2DhSX-I.mjs → rollback-CmeGUxpC.mjs} +6 -6
- package/dist/{rollback-B2DhSX-I.mjs.map → rollback-CmeGUxpC.mjs.map} +1 -1
- package/dist/{s3-BY5ry__M.mjs → s3-DKFFpPrS.mjs} +3 -3
- package/dist/{s3-BY5ry__M.mjs.map → s3-DKFFpPrS.mjs.map} +1 -1
- package/dist/{s3-FG9qIgEB.cjs → s3-du68lLNe.cjs} +3 -3
- package/dist/{s3-FG9qIgEB.cjs.map → s3-du68lLNe.cjs.map} +1 -1
- package/dist/{serverSetup-BL1sHzRr.mjs → serverSetup-BHxCT8nA.mjs} +6 -6
- package/dist/{serverSetup-BL1sHzRr.mjs.map → serverSetup-BHxCT8nA.mjs.map} +1 -1
- package/dist/{serverSetup-C7fDKGiN.cjs → serverSetup-Uk07rJqu.cjs} +8 -8
- package/dist/{serverSetup-C7fDKGiN.cjs.map → serverSetup-Uk07rJqu.cjs.map} +1 -1
- package/dist/{sniffer-BvhDRsgI.mjs → sniffer-FQzApIZ2.mjs} +7 -7
- package/dist/{sniffer-BvhDRsgI.mjs.map → sniffer-FQzApIZ2.mjs.map} +1 -1
- package/dist/{sniffer-DJp9a2Pg.cjs → sniffer-_XeLyu2-.cjs} +7 -7
- package/dist/{sniffer-DJp9a2Pg.cjs.map → sniffer-_XeLyu2-.cjs.map} +1 -1
- package/dist/{snsSubscriptions-7y2XBXde.mjs → snsSubscriptions-BCLdw-vn.mjs} +5 -78
- package/dist/snsSubscriptions-BCLdw-vn.mjs.map +1 -0
- package/dist/{snsSubscriptions-8t1XFvoc.cjs → snsSubscriptions-By_79DkX.cjs} +20 -111
- package/dist/snsSubscriptions-By_79DkX.cjs.map +1 -0
- package/dist/{sst-8HZe83-M.cjs → sst--n0v4Fch.cjs} +7 -7
- package/dist/{sst-8HZe83-M.cjs.map → sst--n0v4Fch.cjs.map} +1 -1
- package/dist/{sst-CzFd-1om.mjs → sst-CtrAb04-.mjs} +5 -5
- package/dist/{sst-CzFd-1om.mjs.map → sst-CtrAb04-.mjs.map} +1 -1
- package/dist/{stack-j2e8ddGl.mjs → stack-BfK0IV3V.mjs} +139 -12
- package/dist/stack-BfK0IV3V.mjs.map +1 -0
- package/dist/{stack-3tvhk7SU.cjs → stack-mqaJRhoK.cjs} +160 -14
- package/dist/stack-mqaJRhoK.cjs.map +1 -0
- package/dist/{stage-DMv-IfSD.mjs → stage-DsfVOAAA.mjs} +6 -6
- package/dist/{stage-DMv-IfSD.mjs.map → stage-DsfVOAAA.mjs.map} +1 -1
- package/dist/{stage-DCSJii_y.cjs → stage-NGr_EzmY.cjs} +8 -8
- package/dist/{stage-DCSJii_y.cjs.map → stage-NGr_EzmY.cjs.map} +1 -1
- package/dist/{stages-D49CUpBY.cjs → stages-8izznWib.cjs} +2 -2
- package/dist/{stages-D49CUpBY.cjs.map → stages-8izznWib.cjs.map} +1 -1
- package/dist/{stages-CCAAe1tP.mjs → stages-QPWgbm9P.mjs} +2 -2
- package/dist/{stages-CCAAe1tP.mjs.map → stages-QPWgbm9P.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-VLmWgL_N.mjs → terminal-AVJMJvk5.mjs} +2 -2
- package/dist/{terminal-VLmWgL_N.mjs.map → terminal-AVJMJvk5.mjs.map} +1 -1
- package/dist/{terminal-DIEj2Nap.cjs → terminal-BpzSISdv.cjs} +5 -5
- package/dist/{terminal-DIEj2Nap.cjs.map → terminal-BpzSISdv.cjs.map} +1 -1
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-B0PI9k9p.mjs → workspace-BBa1Ck5j.mjs} +16 -2
- package/dist/workspace-BBa1Ck5j.mjs.map +1 -0
- package/dist/{workspace-LR9DFjU8.cjs → workspace-DirP2-ed.cjs} +21 -7
- package/dist/workspace-DirP2-ed.cjs.map +1 -0
- package/package.json +15 -15
- package/dist/compose-BLOnkeaJ.mjs.map +0 -1
- package/dist/compose-Br3SQ2bW.cjs.map +0 -1
- package/dist/compose-SNYBstbO.cjs.map +0 -1
- package/dist/compose-iUOeazjW.mjs.map +0 -1
- package/dist/credentials-BdZhygvW.cjs.map +0 -1
- package/dist/credentials-C2VfI-uf.mjs.map +0 -1
- package/dist/deploy-CYyf-Q8N.cjs.map +0 -1
- package/dist/deploy-DqH8QReb.mjs.map +0 -1
- package/dist/snsSubscriptions-7y2XBXde.mjs.map +0 -1
- package/dist/snsSubscriptions-8t1XFvoc.cjs.map +0 -1
- package/dist/stack-3tvhk7SU.cjs.map +0 -1
- package/dist/stack-j2e8ddGl.mjs.map +0 -1
- package/dist/workspace-B0PI9k9p.mjs.map +0 -1
- package/dist/workspace-LR9DFjU8.cjs.map +0 -1
|
@@ -1,17 +1,130 @@
|
|
|
1
1
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
2
|
-
import { Q as imageRef,
|
|
3
|
-
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, Ot as certificateFor, Rt as isReservedStageKey, U as stageProvider, kt as proxyFor, mt as
|
|
4
|
-
import { A as originSecretKey, At as signedOrigins, B as WORKER_PORT, D as ORIGIN_VERIFY_HEADER, I as LOCAL_CA_BUILD_SECRET, It as stageBackups, L as PRERENDER_RUN_ARG, N as composeBuildPaths, Ot as localRolePassword, R as PROCESSOR_PORT, St as bucketPolicies, a as networkEnv, ct as processorUnits, ht as stackBackups, it as runsServer, j as processorOriginHost, lt as workerUnits, mt as backupsService, nt as offlineBuildHosts, rt as publicBuildValues, s as processEnvKeys, tt as OFFLINE_BUILD_ADDRESS, ut as BACKUPS_SERVICE, w as localAuthorityPaths, xt as bucketLifecycles, z as TURBO_VERSION } from "./apps-
|
|
5
|
-
import { $ as clientIpRule, C as redisService, Et as NoDomainForStage, F as stackTelemetry, G as EMULATOR_ACCESS_KEY_ID, H as minioWebhookEnv, L as telemetryOf, M as isTelemetryKey, N as scopeTelemetryEnv, Ot as isMainFrontendApp, R as usesTelemetry, S as STACK_CACHE, St as logsService, T as stackRedis, W as watchedBuckets, Z as LOCAL_TLD, _t as LOGS_SERVICE, at as DEFAULT_IMAGES, bt as logsOnPort, ct as portKeys, et as hostFor, g as postgresSuperuser, k as planFor, kt as resolveHost, n as composeFor, p as LOCAL_RABBITMQ_USER, tt as hostsFor, wt as stackLogs, x as REDIS_SERVICE, xt as logsPorts } from "./compose-
|
|
2
|
+
import { C as storedCredentials, Q as imageRef, n as findRootDomain, r as normalizeDnsConfig } from "./dns-DPHKct-l.mjs";
|
|
3
|
+
import { B as LOGS_PORT, I as otlpTelemetryEnv, L as resolveStageTelemetry, Ot as certificateFor, Rt as isReservedStageKey, U as stageProvider, ht as servesOnCdn, kt as proxyFor, mt as s3Region, nt as bucketName, ot as appKey, ut as fileServerHost, z as telemetryEnv } from "./workspace-BBa1Ck5j.mjs";
|
|
4
|
+
import { A as originSecretKey, At as signedOrigins, B as WORKER_PORT, D as ORIGIN_VERIFY_HEADER, I as LOCAL_CA_BUILD_SECRET, It as stageBackups, L as PRERENDER_RUN_ARG, N as composeBuildPaths, Ot as localRolePassword, R as PROCESSOR_PORT, St as bucketPolicies, a as networkEnv, ct as processorUnits, ht as stackBackups, it as runsServer, j as processorOriginHost, lt as workerUnits, mt as backupsService, nt as offlineBuildHosts, rt as publicBuildValues, s as processEnvKeys, tt as OFFLINE_BUILD_ADDRESS, ut as BACKUPS_SERVICE, w as localAuthorityPaths, xt as bucketLifecycles, z as TURBO_VERSION } from "./apps-Dh2ito9T.mjs";
|
|
5
|
+
import { $ as clientIpRule, C as redisService, Et as NoDomainForStage, F as stackTelemetry, G as EMULATOR_ACCESS_KEY_ID, H as minioWebhookEnv, L as telemetryOf, M as isTelemetryKey, N as scopeTelemetryEnv, Ot as isMainFrontendApp, R as usesTelemetry, S as STACK_CACHE, St as logsService, T as stackRedis, W as watchedBuckets, Z as LOCAL_TLD, _t as LOGS_SERVICE, at as DEFAULT_IMAGES, bt as logsOnPort, ct as portKeys, et as hostFor, g as postgresSuperuser, k as planFor, kt as resolveHost, n as composeFor, p as LOCAL_RABBITMQ_USER, tt as hostsFor, wt as stackLogs, x as REDIS_SERVICE, xt as logsPorts } from "./compose-Cfd5-ubC.mjs";
|
|
6
6
|
import { a as SNS_SUBSCRIPTIONS_KEY, c as INBOX_RELAY_TOKEN_KEY, d as inboxWebhookUrl, o as objectsRoute, s as subscriberRoute, u as inboxRelayWorker } from "./SubscriberGenerator-CfZWX0lT.mjs";
|
|
7
7
|
import { n as DEFAULT_EVENTS } from "./types-Y1NfWlyG.mjs";
|
|
8
|
-
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-
|
|
9
|
-
import { o as processorDockerfile, r as appDockerfile, s as workerDockerfile, v as validateImageRef } from "./docker-
|
|
8
|
+
import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-C23PJFnm.mjs";
|
|
9
|
+
import { o as processorDockerfile, r as appDockerfile, s as workerDockerfile, v as validateImageRef } from "./docker-CeGpTbYR.mjs";
|
|
10
10
|
import { join } from "node:path";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
12
12
|
import { CLIENT_IP_HEADER, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, WILDCARD_SUBDOMAIN, isWildcardSite, providedKeyFor, provisionOrder } from "@geekmidas/manifest";
|
|
13
|
-
import
|
|
13
|
+
import * as s3Url from "@geekmidas/storage/s3-url";
|
|
14
|
+
import { parse as parse$2, stringify } from "yaml";
|
|
14
15
|
import bcrypt from "bcryptjs";
|
|
16
|
+
//#region src/providers/aws.ts
|
|
17
|
+
/**
|
|
18
|
+
* The AWS account a provider provisions in — the stage's, found the way the
|
|
19
|
+
* SSM and Secrets Manager stores find it.
|
|
20
|
+
*
|
|
21
|
+
* 1. `--profile`, resolved on its own: exported keys left over from another
|
|
22
|
+
* account never win over a profile someone named.
|
|
23
|
+
* 2. `AWS_PROFILE`, else `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` — the
|
|
24
|
+
* deploy's own `aws` credential kind (`storedCredentials`).
|
|
25
|
+
* 3. The SDK's default chain: `~/.aws` default profile, SSO, a role. In CI,
|
|
26
|
+
* whatever `aws-actions/configure-aws-credentials` exported.
|
|
27
|
+
*
|
|
28
|
+
* None of them: the provider has no provisioning credentials, and the stage
|
|
29
|
+
* is treated as `external`.
|
|
30
|
+
*/
|
|
31
|
+
async function awsProvisioningCredentials(lookup) {
|
|
32
|
+
const region = lookup.env.AWS_REGION ?? lookup.env.AWS_DEFAULT_REGION;
|
|
33
|
+
const where = region ? { region } : {};
|
|
34
|
+
if (lookup.profile) return {
|
|
35
|
+
profile: lookup.profile,
|
|
36
|
+
...where
|
|
37
|
+
};
|
|
38
|
+
const stored = await storedCredentials({
|
|
39
|
+
env: lookup.env,
|
|
40
|
+
...lookup.home ? { home: lookup.home } : {}
|
|
41
|
+
}).get({
|
|
42
|
+
kind: "aws",
|
|
43
|
+
stage: lookup.stage
|
|
44
|
+
});
|
|
45
|
+
if (stored) return stored;
|
|
46
|
+
try {
|
|
47
|
+
const { fromNodeProviderChain } = await import("@aws-sdk/credential-providers");
|
|
48
|
+
await fromNodeProviderChain({
|
|
49
|
+
timeout: 1e3,
|
|
50
|
+
maxRetries: 0
|
|
51
|
+
})();
|
|
52
|
+
return {
|
|
53
|
+
chain: true,
|
|
54
|
+
...where
|
|
55
|
+
};
|
|
56
|
+
} catch {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* An S3-compatible endpoint the environment points the SDK at — the AWS
|
|
62
|
+
* emulator in tests. The SDK reads it itself; it is read here too, because
|
|
63
|
+
* an emulator takes path-style requests, and a key written for one has to
|
|
64
|
+
* say where it is.
|
|
65
|
+
*/
|
|
66
|
+
function awsEndpoint(env, service) {
|
|
67
|
+
return env[`AWS_ENDPOINT_URL_${service}`] ?? env.AWS_ENDPOINT_URL;
|
|
68
|
+
}
|
|
69
|
+
/** An SDK client's config for a provisioning credential. */
|
|
70
|
+
async function awsClientConfig(credential, region) {
|
|
71
|
+
if ("profile" in credential) {
|
|
72
|
+
const { fromIni } = await import("@aws-sdk/credential-providers");
|
|
73
|
+
return {
|
|
74
|
+
region,
|
|
75
|
+
credentials: fromIni({ profile: credential.profile })
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
if ("accessKeyId" in credential) return {
|
|
79
|
+
region,
|
|
80
|
+
credentials: {
|
|
81
|
+
accessKeyId: credential.accessKeyId,
|
|
82
|
+
secretAccessKey: credential.secretAccessKey,
|
|
83
|
+
...credential.sessionToken ? { sessionToken: credential.sessionToken } : {}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return { region };
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/providers/s3/plannedOrigin.ts
|
|
90
|
+
/**
|
|
91
|
+
* Where a bucket the `s3` provider is to create signs its links, before it
|
|
92
|
+
* has: the origin of the name and region its first deploy gives it.
|
|
93
|
+
*
|
|
94
|
+
* A site's image inlines its buckets' signed origins, and a protected stage's
|
|
95
|
+
* images are built on every push to the default branch, long before the
|
|
96
|
+
* release that first deploys the stage. The connection the origin is
|
|
97
|
+
* otherwise derived from (`signedOrigins`) is written by that deploy, so
|
|
98
|
+
* without this a stage that has never been deployed cannot be built, and a
|
|
99
|
+
* stage that cannot be built is never deployed.
|
|
100
|
+
*/
|
|
101
|
+
/**
|
|
102
|
+
* `https://<bucket>.s3.<region>.amazonaws.com` for the bucket's good name.
|
|
103
|
+
*
|
|
104
|
+
* Nothing when it cannot be known ahead: against an S3 emulator
|
|
105
|
+
* (`AWS_ENDPOINT_URL`), or with no region to name. The first deploy names a
|
|
106
|
+
* bucket otherwise only when another account already holds the good name —
|
|
107
|
+
* a suffixed one, which it reports, and whose origin the next build inlines.
|
|
108
|
+
*/
|
|
109
|
+
function plannedSignedOrigin(input, env = process.env) {
|
|
110
|
+
if (awsEndpoint(env, "S3")) return void 0;
|
|
111
|
+
let region;
|
|
112
|
+
try {
|
|
113
|
+
region = s3Region(input, env);
|
|
114
|
+
} catch {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const bucket = bucketName({
|
|
118
|
+
scope: input.scope,
|
|
119
|
+
stage: input.stage,
|
|
120
|
+
id: appKey(input.bucket)
|
|
121
|
+
});
|
|
122
|
+
return s3Url.signedOrigin({
|
|
123
|
+
bucket,
|
|
124
|
+
region
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
15
128
|
//#region src/compose/routes.ts
|
|
16
129
|
/**
|
|
17
130
|
* Every host a route answers on — its own, its aliases and its redirects —
|
|
@@ -803,7 +916,7 @@ function readEdgeClaims(file) {
|
|
|
803
916
|
}
|
|
804
917
|
let document;
|
|
805
918
|
try {
|
|
806
|
-
document = parse$
|
|
919
|
+
document = parse$2(file);
|
|
807
920
|
} catch {
|
|
808
921
|
return [];
|
|
809
922
|
}
|
|
@@ -1384,6 +1497,20 @@ function composeStack(input) {
|
|
|
1384
1497
|
const warnings = [];
|
|
1385
1498
|
const objectsProvider = stageProvider(workspace, "objects", stage);
|
|
1386
1499
|
const onCdn = objectsProvider.mode === "provider" && objectsProvider.name === "s3" && servesOnCdn(objectsProvider.config);
|
|
1500
|
+
const plannedOrigins = /* @__PURE__ */ new Map();
|
|
1501
|
+
if (!local && objectsProvider.mode === "provider" && objectsProvider.name === "s3") for (const resource of plan.resources) {
|
|
1502
|
+
if (resource.kind !== "objects") continue;
|
|
1503
|
+
if (services.minio.includes(resource.id)) continue;
|
|
1504
|
+
if (custom[providedKeyFor(resource.id, "objects", "connectionString")] !== void 0) continue;
|
|
1505
|
+
const origin = plannedSignedOrigin({
|
|
1506
|
+
workspace,
|
|
1507
|
+
stage,
|
|
1508
|
+
scope: identity.scope,
|
|
1509
|
+
config: objectsProvider.config,
|
|
1510
|
+
bucket: resource.id
|
|
1511
|
+
});
|
|
1512
|
+
if (origin) plannedOrigins.set(providedKeyFor(resource.id, "objects", "signedOrigin"), origin);
|
|
1513
|
+
}
|
|
1387
1514
|
const fileServerUrls = /* @__PURE__ */ new Map();
|
|
1388
1515
|
for (const resource of plan.resources) {
|
|
1389
1516
|
if (resource.kind !== "file-server") continue;
|
|
@@ -1496,7 +1623,7 @@ function composeStack(input) {
|
|
|
1496
1623
|
for (const app of apps) {
|
|
1497
1624
|
const site = manifest[app.id];
|
|
1498
1625
|
if (site?.kind === "site") {
|
|
1499
|
-
const args = publicBuildValues(site, manifest, (key) => valueFor(app, key, owners.get(key)), custom, !local && app.build ? { requireFileOrigins: { stage } } : {});
|
|
1626
|
+
const args = publicBuildValues(site, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom, !local && app.build ? { requireFileOrigins: { stage } } : {});
|
|
1500
1627
|
if (app.prerender && input.prerenderRun) args[PRERENDER_RUN_ARG] = input.prerenderRun;
|
|
1501
1628
|
if (app.build && Object.keys(args).length > 0) app.build.args = args;
|
|
1502
1629
|
const offline = offlineBuildHosts(site, manifest, (key) => valueFor(app, key, owners.get(key)));
|
|
@@ -1528,7 +1655,7 @@ function composeStack(input) {
|
|
|
1528
1655
|
mobileApps.push({
|
|
1529
1656
|
name: app.name,
|
|
1530
1657
|
id: app.id,
|
|
1531
|
-
values: publicBuildValues(declaration, manifest, (key) => valueFor(app, key, owners.get(key)), custom)
|
|
1658
|
+
values: publicBuildValues(declaration, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom)
|
|
1532
1659
|
});
|
|
1533
1660
|
}
|
|
1534
1661
|
for (const worker of input.buildOnly ? [] : workers) {
|
|
@@ -2376,6 +2503,6 @@ function withLogsPort(stack, port) {
|
|
|
2376
2503
|
};
|
|
2377
2504
|
}
|
|
2378
2505
|
//#endregion
|
|
2379
|
-
export { pinnedRef as A, readEdgeClaims as C, assertImagesExist as D, RegistryRequired as E, parseDigests as O, edgeComposeFile as S, assertSitePasswords as T, EDGE_DYNAMIC_DIR as _, composeProject as a, EDGE_SERVICE as b, derivedCredentials as c, stackDir as d, stackPlan as f, EDGE_CERTS_DIR as g, EDGE_AWS_CREDENTIALS as h, LOOPBACK_SERVICES as i, routeHosts as j, pinImages as k, envFile as l, withLogsPort as m, LOGS_PORT_ENV as n, composeStack as o, withCaddyConfigs as p, LOG_ROTATION as r, deployedInboxEnv as s, EDGE_PORT_ENV as t, replicaNames as u, EDGE_NETWORK as v, traefikStaticFile as w, claimsOverlap as x, EDGE_PROJECT as y };
|
|
2506
|
+
export { pinnedRef as A, readEdgeClaims as C, assertImagesExist as D, RegistryRequired as E, awsClientConfig as M, awsEndpoint as N, parseDigests as O, awsProvisioningCredentials as P, edgeComposeFile as S, assertSitePasswords as T, EDGE_DYNAMIC_DIR as _, composeProject as a, EDGE_SERVICE as b, derivedCredentials as c, stackDir as d, stackPlan as f, EDGE_CERTS_DIR as g, EDGE_AWS_CREDENTIALS as h, LOOPBACK_SERVICES as i, routeHosts as j, pinImages as k, envFile as l, withLogsPort as m, LOGS_PORT_ENV as n, composeStack as o, withCaddyConfigs as p, LOG_ROTATION as r, deployedInboxEnv as s, EDGE_PORT_ENV as t, replicaNames as u, EDGE_NETWORK as v, traefikStaticFile as w, claimsOverlap as x, EDGE_PROJECT as y };
|
|
2380
2507
|
|
|
2381
|
-
//# sourceMappingURL=stack-
|
|
2508
|
+
//# sourceMappingURL=stack-BfK0IV3V.mjs.map
|