@geekmidas/cli 10.0.0-alpha.187 → 10.0.0-alpha.189
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/{LegacyStateStore-BYJwVE8_.mjs → LegacyStateStore-BI0-sXct.mjs} +2 -2
- package/dist/{LegacyStateStore-BYJwVE8_.mjs.map → LegacyStateStore-BI0-sXct.mjs.map} +1 -1
- package/dist/{LegacyStateStore-B3kv1Dlb.cjs → LegacyStateStore-DSl-Kjhn.cjs} +2 -2
- package/dist/{LegacyStateStore-B3kv1Dlb.cjs.map → LegacyStateStore-DSl-Kjhn.cjs.map} +1 -1
- package/dist/{LocalStateStore-CIT6SyRe.mjs → LocalStateStore-CKoytnSh.mjs} +2 -2
- package/dist/{LocalStateStore-CIT6SyRe.mjs.map → LocalStateStore-CKoytnSh.mjs.map} +1 -1
- package/dist/{LocalStateStore-D7QcuAVb.cjs → LocalStateStore-DlXihNk5.cjs} +2 -2
- package/dist/{LocalStateStore-D7QcuAVb.cjs.map → LocalStateStore-DlXihNk5.cjs.map} +1 -1
- package/dist/{S3StateStore-BufODsIW.mjs → S3StateStore-BWiLJgjA.mjs} +4 -4
- package/dist/{S3StateStore-BufODsIW.mjs.map → S3StateStore-BWiLJgjA.mjs.map} +1 -1
- package/dist/{S3StateStore-DenzHSZI.cjs → S3StateStore-DAQh1WJ_.cjs} +4 -4
- package/dist/{S3StateStore-DenzHSZI.cjs.map → S3StateStore-DAQh1WJ_.cjs.map} +1 -1
- package/dist/{SSMStateStore-BcsFXUE4.cjs → SSMStateStore-CwpsKiqW.cjs} +2 -2
- package/dist/{SSMStateStore-BcsFXUE4.cjs.map → SSMStateStore-CwpsKiqW.cjs.map} +1 -1
- package/dist/{SSMStateStore-DK8GsGGP.mjs → SSMStateStore-Dtjc3Tcy.mjs} +2 -2
- package/dist/{SSMStateStore-DK8GsGGP.mjs.map → SSMStateStore-Dtjc3Tcy.mjs.map} +1 -1
- package/dist/{add-Bp-Rr-CO.mjs → add-CgR8OZmf.mjs} +4 -4
- package/dist/{add-Bp-Rr-CO.mjs.map → add-CgR8OZmf.mjs.map} +1 -1
- package/dist/{add-BWr0-iEz.cjs → add-DgoqWfHX.cjs} +4 -4
- package/dist/{add-BWr0-iEz.cjs.map → add-DgoqWfHX.cjs.map} +1 -1
- package/dist/{bundler-aW-QiGWN.mjs → bundler-B0GTqknw.mjs} +6 -6
- package/dist/{bundler-aW-QiGWN.mjs.map → bundler-B0GTqknw.mjs.map} +1 -1
- package/dist/{bundler-Cox-23P6.cjs → bundler-ZNjpx5xS.cjs} +6 -6
- package/dist/{bundler-Cox-23P6.cjs.map → bundler-ZNjpx5xS.cjs.map} +1 -1
- package/dist/{cli-Crhs1fmo.cjs → cli-DqEhTw8n.cjs} +4 -4
- package/dist/{cli-Crhs1fmo.cjs.map → cli-DqEhTw8n.cjs.map} +1 -1
- package/dist/{cli-BsiXqFrT.mjs → cli-bjBjd1zg.mjs} +4 -4
- package/dist/{cli-BsiXqFrT.mjs.map → cli-bjBjd1zg.mjs.map} +1 -1
- package/dist/{clientTelemetry-Bzc4KXz5.d.mts → clientTelemetry-C3GsvvLK.d.cts} +2 -2
- package/dist/clientTelemetry-C3GsvvLK.d.cts.map +1 -0
- package/dist/{clientTelemetry-N8NAguGI.d.cts → clientTelemetry-Dcp0jgkV.d.mts} +2 -2
- package/dist/clientTelemetry-Dcp0jgkV.d.mts.map +1 -0
- package/dist/{compose-BcL1Swdp.mjs → compose-BE2Fi1Bs.mjs} +186 -33
- package/dist/compose-BE2Fi1Bs.mjs.map +1 -0
- package/dist/{compose-BiQ6kNhM.cjs → compose-QHm47c8E.cjs} +197 -32
- package/dist/compose-QHm47c8E.cjs.map +1 -0
- package/dist/{config-KFyPSS0R.d.cts → config-B_pfl-ZN.d.cts} +3 -3
- package/dist/{config-DpqIrrRJ.d.mts.map → config-B_pfl-ZN.d.cts.map} +1 -1
- package/dist/{config-DpqIrrRJ.d.mts → config-CDulXPTe.d.mts} +3 -3
- package/dist/{config-KFyPSS0R.d.cts.map → config-CDulXPTe.d.mts.map} +1 -1
- package/dist/config.cjs +1 -1
- package/dist/config.d.cts +3 -3
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -1
- package/dist/{credentials-CJyYk-m9.cjs → credentials--QL1R8mL.cjs} +40 -5
- package/dist/credentials--QL1R8mL.cjs.map +1 -0
- package/dist/{credentials-N_yElkgc.mjs → credentials-0Kmo6GAw.mjs} +7 -6
- package/dist/credentials-0Kmo6GAw.mjs.map +1 -0
- package/dist/{credentials-8EmlMGSU.mjs → credentials-CRgp0huX.mjs} +29 -6
- package/dist/credentials-CRgp0huX.mjs.map +1 -0
- package/dist/{credentials-BsgMQm1V.cjs → credentials-No8csre7.cjs} +6 -5
- package/dist/credentials-No8csre7.cjs.map +1 -0
- package/dist/{dbTunnel-CZ-6PUzq.cjs → dbTunnel-CEHBYvbM.cjs} +5 -5
- package/dist/{dbTunnel-CZ-6PUzq.cjs.map → dbTunnel-CEHBYvbM.cjs.map} +1 -1
- package/dist/{dbTunnel-Bmj9fmXv.mjs → dbTunnel-DOiMt-yL.mjs} +5 -5
- package/dist/{dbTunnel-Bmj9fmXv.mjs.map → dbTunnel-DOiMt-yL.mjs.map} +1 -1
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.d.cts +5 -5
- package/dist/deploy/public.d.mts +5 -5
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-DokDmyUV.mjs → deploy-KdBFBME1.mjs} +12 -11
- package/dist/deploy-KdBFBME1.mjs.map +1 -0
- package/dist/{deploy-DtO1rC_U.cjs → deploy-Pkvk9jIL.cjs} +12 -11
- package/dist/deploy-Pkvk9jIL.cjs.map +1 -0
- package/dist/{destroy-BwKhuhFd.mjs → destroy-CFc0rdP4.mjs} +10 -9
- package/dist/{destroy-BwKhuhFd.mjs.map → destroy-CFc0rdP4.mjs.map} +1 -1
- package/dist/{destroy-BKZY6QLy.cjs → destroy-oqNna46x.cjs} +10 -9
- package/dist/{destroy-BKZY6QLy.cjs.map → destroy-oqNna46x.cjs.map} +1 -1
- package/dist/{dokploy-Clnb-dRK.mjs → dokploy-BkwTpeNU.mjs} +2 -2
- package/dist/{dokploy-Clnb-dRK.mjs.map → dokploy-BkwTpeNU.mjs.map} +1 -1
- package/dist/{dokploy-BJEAhFPx.cjs → dokploy-CxEzce91.cjs} +2 -2
- package/dist/{dokploy-BJEAhFPx.cjs.map → dokploy-CxEzce91.cjs.map} +1 -1
- package/dist/{eas-PwJTBvEv.cjs → eas-DbDHF2WZ.cjs} +3 -3
- package/dist/{eas-PwJTBvEv.cjs.map → eas-DbDHF2WZ.cjs.map} +1 -1
- package/dist/{eas-RRLe1Ykb.mjs → eas-vzSPhv0B.mjs} +3 -3
- package/dist/{eas-RRLe1Ykb.mjs.map → eas-vzSPhv0B.mjs.map} +1 -1
- package/dist/{encryption-C0Obifb1.cjs → encryption-4xb0WByC.cjs} +3 -3
- package/dist/{encryption-C0Obifb1.cjs.map → encryption-4xb0WByC.cjs.map} +1 -1
- package/dist/{encryption-DsiFDtEs.mjs → encryption-BJirKe8H.mjs} +3 -3
- package/dist/{encryption-DsiFDtEs.mjs.map → encryption-BJirKe8H.mjs.map} +1 -1
- package/dist/{engine-C0gShT3p.mjs → engine-Blw0271a.mjs} +7 -7
- package/dist/{engine-C0gShT3p.mjs.map → engine-Blw0271a.mjs.map} +1 -1
- package/dist/{engine-DVDe8Hx_.cjs → engine-C-tyF0OQ.cjs} +7 -7
- package/dist/{engine-DVDe8Hx_.cjs.map → engine-C-tyF0OQ.cjs.map} +1 -1
- package/dist/{github-B0Al5cId.cjs → github-Aydv6vu5.cjs} +7 -7
- package/dist/{github-B0Al5cId.cjs.map → github-Aydv6vu5.cjs.map} +1 -1
- package/dist/{github-o9OKgpAz.mjs → github-C_h3NRr7.mjs} +7 -7
- package/dist/{github-o9OKgpAz.mjs.map → github-C_h3NRr7.mjs.map} +1 -1
- package/dist/{googlePlay-CgEgbCVa.mjs → googlePlay-B7AYn6Pc.mjs} +4 -4
- package/dist/{googlePlay-CgEgbCVa.mjs.map → googlePlay-B7AYn6Pc.mjs.map} +1 -1
- package/dist/{googlePlay-INjqj3Sc.cjs → googlePlay-DpJTysGZ.cjs} +4 -4
- package/dist/{googlePlay-INjqj3Sc.cjs.map → googlePlay-DpJTysGZ.cjs.map} +1 -1
- package/dist/{iam-DloEBLXZ.mjs → iam-CE1QQeEQ.mjs} +2 -2
- package/dist/{iam-DloEBLXZ.mjs.map → iam-CE1QQeEQ.mjs.map} +1 -1
- package/dist/{iam-SxPKYCI_.cjs → iam-DlPqLzjO.cjs} +2 -2
- package/dist/{iam-SxPKYCI_.cjs.map → iam-DlPqLzjO.cjs.map} +1 -1
- package/dist/{index-BThTZV8T.d.mts → index-CBl51bCQ.d.cts} +2 -2
- package/dist/{index-BThTZV8T.d.mts.map → index-CBl51bCQ.d.cts.map} +1 -1
- package/dist/{index-Cgd-ouyI.d.cts → index-Dqp1lLjF.d.mts} +2 -2
- package/dist/{index-Cgd-ouyI.d.cts.map → index-Dqp1lLjF.d.mts.map} +1 -1
- package/dist/index.cjs +126 -72
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +126 -72
- package/dist/index.mjs.map +1 -1
- package/dist/{local-BiM__VCH.cjs → local-BEM8UVsa.cjs} +2 -2
- package/dist/{local-BiM__VCH.cjs.map → local-BEM8UVsa.cjs.map} +1 -1
- package/dist/{local-Cnbc8rQp.mjs → local-ZaXGH2eP.mjs} +2 -2
- package/dist/{local-Cnbc8rQp.mjs.map → local-ZaXGH2eP.mjs.map} +1 -1
- package/dist/{migrate-dgTtl7hO.mjs → migrate-BuReWK8R.mjs} +5 -5
- package/dist/{migrate-dgTtl7hO.mjs.map → migrate-BuReWK8R.mjs.map} +1 -1
- package/dist/{migrate-DgONWHqx.mjs → migrate-CkeIl9YW.mjs} +3 -3
- package/dist/{migrate-DgONWHqx.mjs.map → migrate-CkeIl9YW.mjs.map} +1 -1
- package/dist/{migrate-BIuREfyX.cjs → migrate-Cq4s3V1M.cjs} +3 -3
- package/dist/{migrate-BIuREfyX.cjs.map → migrate-Cq4s3V1M.cjs.map} +1 -1
- package/dist/{migrate-DMePGfDk.cjs → migrate-DTMYWQn6.cjs} +5 -5
- package/dist/{migrate-DMePGfDk.cjs.map → migrate-DTMYWQn6.cjs.map} +1 -1
- package/dist/openapi.cjs +1 -1
- package/dist/openapi.d.cts +2 -2
- package/dist/openapi.d.mts +2 -2
- package/dist/openapi.mjs +1 -1
- package/dist/{projectBucket-DS8YAcjG.mjs → projectBucket-BaZfu9b6.mjs} +2 -2
- package/dist/{projectBucket-DS8YAcjG.mjs.map → projectBucket-BaZfu9b6.mjs.map} +1 -1
- package/dist/{projectBucket-D33fcuVv.cjs → projectBucket-CBzCpLML.cjs} +2 -2
- package/dist/{projectBucket-D33fcuVv.cjs.map → projectBucket-CBzCpLML.cjs.map} +1 -1
- package/dist/{publish-DTESp-zL.cjs → publish-CLYnKn-k.cjs} +2 -2
- package/dist/{publish-DTESp-zL.cjs.map → publish-CLYnKn-k.cjs.map} +1 -1
- package/dist/{publish-DayqXMgK.mjs → publish-UxavszCu.mjs} +2 -2
- package/dist/{publish-DayqXMgK.mjs.map → publish-UxavszCu.mjs.map} +1 -1
- package/dist/reconcile/public.d.cts +1 -1
- package/dist/reconcile/public.d.mts +1 -1
- package/dist/{resolve-CFrS9f8t.mjs → resolve-Bk9a9BVj.mjs} +4 -4
- package/dist/{resolve-CFrS9f8t.mjs.map → resolve-Bk9a9BVj.mjs.map} +1 -1
- package/dist/{resolve-smEj5R9u.cjs → resolve-CeeNr_ex.cjs} +4 -4
- package/dist/{resolve-smEj5R9u.cjs.map → resolve-CeeNr_ex.cjs.map} +1 -1
- package/dist/{rollback-Di2aDQd8.cjs → rollback-D6AdPlie.cjs} +7 -7
- package/dist/{rollback-Di2aDQd8.cjs.map → rollback-D6AdPlie.cjs.map} +1 -1
- package/dist/{rollback-Nh0ECNZP.mjs → rollback-DyMVhn7L.mjs} +7 -7
- package/dist/{rollback-Nh0ECNZP.mjs.map → rollback-DyMVhn7L.mjs.map} +1 -1
- package/dist/{runtime-Ct41f0tN.d.mts → runtime-DFG1CAWA.d.mts} +2 -2
- package/dist/{runtime-BtoiRP5G.d.cts.map → runtime-DFG1CAWA.d.mts.map} +1 -1
- package/dist/{runtime-BtoiRP5G.d.cts → runtime-DjhB4Oxn.d.cts} +2 -2
- package/dist/{runtime-Ct41f0tN.d.mts.map → runtime-DjhB4Oxn.d.cts.map} +1 -1
- package/dist/{s3-NJ6g9LT4.mjs → s3-B9UimcQe.mjs} +3 -3
- package/dist/{s3-NJ6g9LT4.mjs.map → s3-B9UimcQe.mjs.map} +1 -1
- package/dist/{s3-w4NEUmAb.cjs → s3-FbPmbPft.cjs} +3 -3
- package/dist/{s3-w4NEUmAb.cjs.map → s3-FbPmbPft.cjs.map} +1 -1
- package/dist/{serverSetup-C7M3XUzI.mjs → serverSetup-BH7_Zt0N.mjs} +7 -7
- package/dist/{serverSetup-C7M3XUzI.mjs.map → serverSetup-BH7_Zt0N.mjs.map} +1 -1
- package/dist/{serverSetup-QLq-WZ-0.cjs → serverSetup-CeFkPTVz.cjs} +7 -7
- package/dist/{serverSetup-QLq-WZ-0.cjs.map → serverSetup-CeFkPTVz.cjs.map} +1 -1
- package/dist/{sniffer-Cg5jF0Ks.mjs → sniffer-8TlRbqb0.mjs} +7 -7
- package/dist/{sniffer-Cg5jF0Ks.mjs.map → sniffer-8TlRbqb0.mjs.map} +1 -1
- package/dist/{sniffer-DaDiVZV2.cjs → sniffer-B83jVMSA.cjs} +7 -7
- package/dist/{sniffer-DaDiVZV2.cjs.map → sniffer-B83jVMSA.cjs.map} +1 -1
- package/dist/{snsSubscriptions-5EWtnPvE.cjs → snsSubscriptions-B7uEpoJ2.cjs} +12 -6
- package/dist/snsSubscriptions-B7uEpoJ2.cjs.map +1 -0
- package/dist/{snsSubscriptions-Ct4_v2HZ.mjs → snsSubscriptions-BQcD_3UK.mjs} +12 -6
- package/dist/snsSubscriptions-BQcD_3UK.mjs.map +1 -0
- package/dist/{sst-BlXVHMle.cjs → sst-D0t-8yEl.cjs} +6 -6
- package/dist/{sst-BlXVHMle.cjs.map → sst-D0t-8yEl.cjs.map} +1 -1
- package/dist/{sst-DD9MlGXY.mjs → sst-w90IUOX_.mjs} +6 -6
- package/dist/{sst-DD9MlGXY.mjs.map → sst-w90IUOX_.mjs.map} +1 -1
- package/dist/{stack-DWsG_ZL-.mjs → stack-B5-pHmtX.mjs} +64 -28
- package/dist/stack-B5-pHmtX.mjs.map +1 -0
- package/dist/{stack-dyeQ8u3c.cjs → stack-CBgOAZDP.cjs} +63 -27
- package/dist/stack-CBgOAZDP.cjs.map +1 -0
- package/dist/{stage-QJk7pMSh.mjs → stage-C6ogkiRu.mjs} +5 -5
- package/dist/{stage-QJk7pMSh.mjs.map → stage-C6ogkiRu.mjs.map} +1 -1
- package/dist/{stage-Dkd13Ije.cjs → stage-EnQ76HLW.cjs} +5 -5
- package/dist/{stage-Dkd13Ije.cjs.map → stage-EnQ76HLW.cjs.map} +1 -1
- package/dist/{stages-Dk6Lv7DY.cjs → stages-C8HQ9ozh.cjs} +2 -2
- package/dist/{stages-Dk6Lv7DY.cjs.map → stages-C8HQ9ozh.cjs.map} +1 -1
- package/dist/{stages-DFvE7iEO.mjs → stages-DnN6lwL4.mjs} +2 -2
- package/dist/{stages-DFvE7iEO.mjs.map → stages-DnN6lwL4.mjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.d.cts +2 -2
- package/dist/target/public.d.mts +2 -2
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-ByYXHXDB.mjs → terminal-Cb58S1Yx.mjs} +2 -2
- package/dist/{terminal-ByYXHXDB.mjs.map → terminal-Cb58S1Yx.mjs.map} +1 -1
- package/dist/{terminal-CsRESfL9.cjs → terminal-D9abUcq9.cjs} +2 -2
- package/dist/{terminal-CsRESfL9.cjs.map → terminal-D9abUcq9.cjs.map} +1 -1
- package/dist/{types-CJTKWLkK.d.mts → types-B-ohhDwy.d.mts} +13 -1
- package/dist/types-B-ohhDwy.d.mts.map +1 -0
- package/dist/{types-BVDaaLas.d.cts → types-BAqI--_q.d.cts} +13 -1
- package/dist/types-BAqI--_q.d.cts.map +1 -0
- package/dist/workspace/index.cjs +1 -1
- package/dist/workspace/index.d.cts +2 -2
- package/dist/workspace/index.d.mts +2 -2
- package/dist/workspace/index.mjs +1 -1
- package/dist/{workspace-CdiCMRap.mjs → workspace-BSGUH2DO.mjs} +5 -3
- package/dist/workspace-BSGUH2DO.mjs.map +1 -0
- package/dist/{workspace-CTspddnJ.cjs → workspace-K403npiD.cjs} +5 -3
- package/dist/workspace-K403npiD.cjs.map +1 -0
- package/package.json +16 -16
- package/dist/clientTelemetry-Bzc4KXz5.d.mts.map +0 -1
- package/dist/clientTelemetry-N8NAguGI.d.cts.map +0 -1
- package/dist/compose-BcL1Swdp.mjs.map +0 -1
- package/dist/compose-BiQ6kNhM.cjs.map +0 -1
- package/dist/credentials-8EmlMGSU.mjs.map +0 -1
- package/dist/credentials-BsgMQm1V.cjs.map +0 -1
- package/dist/credentials-CJyYk-m9.cjs.map +0 -1
- package/dist/credentials-N_yElkgc.mjs.map +0 -1
- package/dist/deploy-DokDmyUV.mjs.map +0 -1
- package/dist/deploy-DtO1rC_U.cjs.map +0 -1
- package/dist/snsSubscriptions-5EWtnPvE.cjs.map +0 -1
- package/dist/snsSubscriptions-Ct4_v2HZ.mjs.map +0 -1
- package/dist/stack-DWsG_ZL-.mjs.map +0 -1
- package/dist/stack-dyeQ8u3c.cjs.map +0 -1
- package/dist/types-BVDaaLas.d.cts.map +0 -1
- package/dist/types-CJTKWLkK.d.mts.map +0 -1
- package/dist/workspace-CTspddnJ.cjs.map +0 -1
- package/dist/workspace-CdiCMRap.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_errors = require("./errors-D1x8duqI.cjs");
|
|
3
|
-
const require_credentials = require("./credentials
|
|
4
|
-
const require_workspace = require("./workspace-
|
|
5
|
-
const require_credentials$1 = require("./credentials-
|
|
3
|
+
const require_credentials = require("./credentials--QL1R8mL.cjs");
|
|
4
|
+
const require_workspace = require("./workspace-K403npiD.cjs");
|
|
5
|
+
const require_credentials$1 = require("./credentials-No8csre7.cjs");
|
|
6
6
|
const require_drivers = require("./drivers-DP7__dJX.cjs");
|
|
7
7
|
const require_SubscriberGenerator = require("./SubscriberGenerator-CxzECrfj.cjs");
|
|
8
8
|
const require_EndpointGenerator = require("./EndpointGenerator-iyA3HkOH.cjs");
|
|
@@ -424,6 +424,18 @@ const dockerCompose = {
|
|
|
424
424
|
if (code !== 0) return void 0;
|
|
425
425
|
return stdout.trim().split("\n")[0] || void 0;
|
|
426
426
|
},
|
|
427
|
+
async logs(stack, service, lines) {
|
|
428
|
+
const env = engineEnv(stack);
|
|
429
|
+
const { stdout, stderr } = await capture("docker", compose(stack, [
|
|
430
|
+
"logs",
|
|
431
|
+
"--no-color",
|
|
432
|
+
"--no-log-prefix",
|
|
433
|
+
"--tail",
|
|
434
|
+
String(lines),
|
|
435
|
+
service
|
|
436
|
+
]), env ? { env } : {});
|
|
437
|
+
return `${stdout}${stderr}`.trimEnd();
|
|
438
|
+
},
|
|
427
439
|
async push(stack, ref) {
|
|
428
440
|
const output = await runOutput("docker", ["push", ref], {
|
|
429
441
|
cwd: stack.cwd,
|
|
@@ -954,12 +966,21 @@ function credentialOf(options) {
|
|
|
954
966
|
* stored URL naming an old port is the drift resolution replaces. A command
|
|
955
967
|
* whose stage says a value by hand (a deployed stack's) leaves that key out
|
|
956
968
|
* of `resolved`.
|
|
969
|
+
*
|
|
970
|
+
* But for a frontend's stage (`PUBLIC_STAGE_KEYS`), which is a name rather
|
|
971
|
+
* than an address: a stored one is how the stage told its bundle what it is
|
|
972
|
+
* called, and it wins here as it wins in an image build.
|
|
957
973
|
*/
|
|
958
974
|
function stageEnv(stored, resolved) {
|
|
959
|
-
|
|
975
|
+
const env = {
|
|
960
976
|
...stored,
|
|
961
977
|
...resolved
|
|
962
978
|
};
|
|
979
|
+
for (const key of _geekmidas_manifest.PUBLIC_STAGE_KEYS) {
|
|
980
|
+
const value = stored[key];
|
|
981
|
+
if (value !== void 0) env[key] = value;
|
|
982
|
+
}
|
|
983
|
+
return env;
|
|
963
984
|
}
|
|
964
985
|
/**
|
|
965
986
|
* The token a stack's own services prove themselves with at its edge
|
|
@@ -1080,6 +1101,7 @@ function publicEnv(plan, resolved, addresses = {}) {
|
|
|
1080
1101
|
const origins = (0, _geekmidas_manifest.imageOrigins)(resource.imageOrigins.sources, (key) => resolved[key]);
|
|
1081
1102
|
if (origins) env[resource.imageOrigins.key] = origins;
|
|
1082
1103
|
}
|
|
1104
|
+
if (resource.stageKey && resolved[resource.envKey]) env[resource.stageKey] = plan.stage;
|
|
1083
1105
|
}
|
|
1084
1106
|
return env;
|
|
1085
1107
|
}
|
|
@@ -2546,13 +2568,16 @@ var SiteBuildValueUnresolved = class extends require_errors.GkmError {
|
|
|
2546
2568
|
* variant's public prefix (`NEXT_PUBLIC_APP_STORE_URL` on a `next` site) was
|
|
2547
2569
|
* declared public by whoever named it, so it is passed. Anything else is
|
|
2548
2570
|
* not: a secret without the prefix never reaches a site's build.
|
|
2571
|
+
* - **The stage it is built for**, under the prefix (`NEXT_PUBLIC_STAGE`):
|
|
2572
|
+
* what a bundle gates production-only code on, as a process reads `STAGE`.
|
|
2573
|
+
* A stage secret of that name wins, unlike every other derived value.
|
|
2549
2574
|
*
|
|
2550
2575
|
* A value the stage resolves to nothing is left out rather than passed empty
|
|
2551
2576
|
* — except, with `requireFileOrigins`, where its pages load files from.
|
|
2552
2577
|
* A derived value wins over a stage secret of the same name: the site's
|
|
2553
2578
|
* addresses are the construct's, not a copy someone set.
|
|
2554
2579
|
*/
|
|
2555
|
-
function publicBuildValues(site, manifest, resolve, secrets, options
|
|
2580
|
+
function publicBuildValues(site, manifest, resolve, secrets, options) {
|
|
2556
2581
|
const args = {};
|
|
2557
2582
|
const own = (0, _geekmidas_manifest.providedKeyFor)(site.id, site.kind, site.kind === "site" ? "url" : "scheme");
|
|
2558
2583
|
const ownValue = resolve(own);
|
|
@@ -2563,20 +2588,20 @@ function publicBuildValues(site, manifest, resolve, secrets, options = {}) {
|
|
|
2563
2588
|
if (value) args[key] = value;
|
|
2564
2589
|
}
|
|
2565
2590
|
const prefix = _geekmidas_manifest.PUBLIC_PREFIX[site.variant];
|
|
2566
|
-
const
|
|
2567
|
-
if (required) for (const value of (0, _geekmidas_manifest.publicValues)(site, manifest)) {
|
|
2591
|
+
if (options.requireFileOrigins) for (const value of (0, _geekmidas_manifest.publicValues)(site, manifest)) {
|
|
2568
2592
|
if (value.kind === "file-server" && value.role === "url") {
|
|
2569
|
-
if (!resolve(value.key)) throw new SiteBuildValueUnresolved(site.id, value.key,
|
|
2593
|
+
if (!resolve(value.key)) throw new SiteBuildValueUnresolved(site.id, value.key, options.stage);
|
|
2570
2594
|
}
|
|
2571
2595
|
if (value.kind === "objects" && value.role === "signedOrigin") {
|
|
2572
2596
|
const connection = (0, _geekmidas_manifest.providedKeyFor)(value.id, "objects", "connectionString");
|
|
2573
|
-
if (!resolve(value.key) && !resolve(connection)) throw new SiteBuildValueUnresolved(site.id, value.key,
|
|
2597
|
+
if (!resolve(value.key) && !resolve(connection)) throw new SiteBuildValueUnresolved(site.id, value.key, options.stage, connection);
|
|
2574
2598
|
}
|
|
2575
2599
|
}
|
|
2576
2600
|
const images = (0, _geekmidas_manifest.imageOriginsFor)(site, manifest);
|
|
2577
2601
|
const origins = images && (0, _geekmidas_manifest.imageOrigins)(images.sources, (source) => resolve(source) ?? derived[source]);
|
|
2578
2602
|
if (images && origins) args[images.key] = origins;
|
|
2579
2603
|
for (const [key, value] of Object.entries(secrets)) if (key.startsWith(prefix) && args[key] === void 0 && value) args[key] = value;
|
|
2604
|
+
args[(0, _geekmidas_manifest.publicStageKey)(site)] ??= options.stage;
|
|
2580
2605
|
return args;
|
|
2581
2606
|
}
|
|
2582
2607
|
/**
|
|
@@ -5749,10 +5774,10 @@ function localPlan(workspace, manifest, fakes = {}, credentialFakes = {}) {
|
|
|
5749
5774
|
* addresses a *browser* can open, since that is where the bundle runs — the
|
|
5750
5775
|
* host's port for each app, never a name on the compose network.
|
|
5751
5776
|
*/
|
|
5752
|
-
function sitePublicArgs(manifest, appName, env) {
|
|
5777
|
+
function sitePublicArgs(manifest, appName, env, stage) {
|
|
5753
5778
|
const declaration = Object.entries(manifest).find(([id, d]) => d.kind === "site" && require_workspace.appKey(id) === appName)?.[1];
|
|
5754
5779
|
if (declaration?.kind !== "site") return {};
|
|
5755
|
-
return publicBuildValues(declaration, manifest, (key) => env[key], {});
|
|
5780
|
+
return publicBuildValues(declaration, manifest, (key) => env[key], {}, { stage });
|
|
5756
5781
|
}
|
|
5757
5782
|
/**
|
|
5758
5783
|
* Every key a plan resolves, with each container addressed by its service
|
|
@@ -5858,6 +5883,7 @@ function appEnvKeys(manifest, appName) {
|
|
|
5858
5883
|
for (const { key } of (0, _geekmidas_manifest.publicValues)(declaration, manifest)) keys.add(key);
|
|
5859
5884
|
const images = (0, _geekmidas_manifest.imageOriginsFor)(declaration, manifest);
|
|
5860
5885
|
if (images) keys.add(images.key);
|
|
5886
|
+
keys.add((0, _geekmidas_manifest.publicStageKey)(declaration));
|
|
5861
5887
|
}
|
|
5862
5888
|
return keys;
|
|
5863
5889
|
}
|
|
@@ -6069,7 +6095,7 @@ function appServices(workspace, manifest, containers, credentials, fakes = {}, c
|
|
|
6069
6095
|
});
|
|
6070
6096
|
const ports = [`${app.port}:${app.port}`];
|
|
6071
6097
|
if (app.type === "web") {
|
|
6072
|
-
const args = sitePublicArgs(manifest, name, browser);
|
|
6098
|
+
const args = sitePublicArgs(manifest, name, browser, plan.stage);
|
|
6073
6099
|
services[key] = {
|
|
6074
6100
|
image: `${key}:\${TAG:-latest}`,
|
|
6075
6101
|
build: {
|
|
@@ -8003,7 +8029,8 @@ function siteDockerfile(appName, app, options) {
|
|
|
8003
8029
|
const publicUrlArgs = options.publicUrlArgs ?? (declared?.kind === "site" && options.manifest ? [
|
|
8004
8030
|
(0, _geekmidas_manifest.providedKeyFor)(declared.id, declared.kind, "url"),
|
|
8005
8031
|
...Object.keys((0, _geekmidas_manifest.publicEnvFor)(declared, options.manifest)),
|
|
8006
|
-
...[(0, _geekmidas_manifest.imageOriginsFor)(declared, options.manifest)?.key].filter((key) => key !== void 0)
|
|
8032
|
+
...[(0, _geekmidas_manifest.imageOriginsFor)(declared, options.manifest)?.key].filter((key) => key !== void 0),
|
|
8033
|
+
(0, _geekmidas_manifest.publicStageKey)(declared)
|
|
8007
8034
|
] : require_credentials$1.getPublicUrlArgNames(app));
|
|
8008
8035
|
const webOpts = {
|
|
8009
8036
|
...options.image,
|
|
@@ -8452,6 +8479,7 @@ function setPostgresBackupId(state, backupId) {
|
|
|
8452
8479
|
* - 'hostinger': HostingerProvider
|
|
8453
8480
|
* - 'route53': Route53Provider
|
|
8454
8481
|
* - 'godaddy': GoDaddyProvider
|
|
8482
|
+
* - 'cloudflare': CloudflareProvider
|
|
8455
8483
|
* - 'manual': Returns null (user handles DNS)
|
|
8456
8484
|
* - Custom: Use provided DnsProvider implementation
|
|
8457
8485
|
*/
|
|
@@ -8492,23 +8520,28 @@ async function createDnsProvider(options) {
|
|
|
8492
8520
|
}
|
|
8493
8521
|
});
|
|
8494
8522
|
}
|
|
8495
|
-
if (provider === "cloudflare")
|
|
8523
|
+
if (provider === "cloudflare") {
|
|
8524
|
+
const { CloudflareProvider } = await import("@geekmidas/edge/dns/cloudflare");
|
|
8525
|
+
const from = options.cloudflareFrom ?? {};
|
|
8526
|
+
return new CloudflareProvider({
|
|
8527
|
+
...options.cloudflareBaseUrl ? { baseUrl: options.cloudflareBaseUrl } : {},
|
|
8528
|
+
credential: async () => {
|
|
8529
|
+
const found = options.cloudflare ?? await require_credentials.storedCredentials({
|
|
8530
|
+
env: from.env ?? process.env,
|
|
8531
|
+
...from.home ? { home: from.home } : {}
|
|
8532
|
+
}).get({ kind: "cloudflare" });
|
|
8533
|
+
if (!found) throw new require_credentials.MissingCredential("cloudflare", void 0);
|
|
8534
|
+
return found;
|
|
8535
|
+
}
|
|
8536
|
+
});
|
|
8537
|
+
}
|
|
8496
8538
|
throw new DnsProviderUnknown(config);
|
|
8497
8539
|
}
|
|
8498
|
-
/** A DNS provider gkm names and does not have yet. */
|
|
8499
|
-
var DnsProviderNotImplemented = class extends Error {
|
|
8500
|
-
provider;
|
|
8501
|
-
constructor(provider) {
|
|
8502
|
-
super(`The ${provider} DNS provider is not implemented yet. Use 'route53', 'godaddy', 'hostinger' or 'manual' for this domain in dns, or pass your own DnsProvider object.`);
|
|
8503
|
-
this.provider = provider;
|
|
8504
|
-
this.name = "DnsProviderNotImplemented";
|
|
8505
|
-
}
|
|
8506
|
-
};
|
|
8507
8540
|
/** A `provider:` that is none of the built-ins, nor a DnsProvider object. */
|
|
8508
8541
|
var DnsProviderUnknown = class extends require_errors.GkmError {
|
|
8509
8542
|
config;
|
|
8510
8543
|
constructor(config) {
|
|
8511
|
-
super(`Unknown DNS provider: ${JSON.stringify(config)}. dns takes 'route53', 'godaddy', 'hostinger', 'manual', or an object implementing DnsProvider.`);
|
|
8544
|
+
super(`Unknown DNS provider: ${JSON.stringify(config)}. dns takes 'route53', 'godaddy', 'hostinger', 'cloudflare', 'manual', or an object implementing DnsProvider.`);
|
|
8512
8545
|
this.config = config;
|
|
8513
8546
|
this.name = "DnsProviderUnknown";
|
|
8514
8547
|
}
|
|
@@ -9857,7 +9890,10 @@ function composeStack(input) {
|
|
|
9857
9890
|
for (const app of apps) {
|
|
9858
9891
|
const site = manifest[app.id];
|
|
9859
9892
|
if (site?.kind === "site") {
|
|
9860
|
-
const args = publicBuildValues(site, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom,
|
|
9893
|
+
const args = publicBuildValues(site, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom, {
|
|
9894
|
+
stage,
|
|
9895
|
+
requireFileOrigins: !local && app.build !== void 0
|
|
9896
|
+
});
|
|
9861
9897
|
if (app.prerender && input.prerenderRun) args[PRERENDER_RUN_ARG] = input.prerenderRun;
|
|
9862
9898
|
Object.assign(args, require_credentials$1.nextBuildValues(site, require_credentials.stageTag(input.images.tag, stage), custom));
|
|
9863
9899
|
if (app.build && Object.keys(args).length > 0) app.build.args = args;
|
|
@@ -9891,7 +9927,7 @@ function composeStack(input) {
|
|
|
9891
9927
|
mobileApps.push({
|
|
9892
9928
|
name: app.name,
|
|
9893
9929
|
id: app.id,
|
|
9894
|
-
values: publicBuildValues(declaration, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom)
|
|
9930
|
+
values: publicBuildValues(declaration, manifest, (key) => valueFor(app, key, owners.get(key)) ?? plannedOrigins.get(key), custom, { stage })
|
|
9895
9931
|
});
|
|
9896
9932
|
}
|
|
9897
9933
|
for (const worker of input.buildOnly ? [] : workers) {
|
|
@@ -11726,4 +11762,4 @@ Object.defineProperty(exports, "writeEdgeRoutes", {
|
|
|
11726
11762
|
}
|
|
11727
11763
|
});
|
|
11728
11764
|
|
|
11729
|
-
//# sourceMappingURL=stack-
|
|
11765
|
+
//# sourceMappingURL=stack-CBgOAZDP.cjs.map
|