@geekmidas/cli 10.0.0-alpha.149 → 10.0.0-alpha.150
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-DKDe-23b.cjs → GoDaddyProvider-CytuBrRm.cjs} +2 -2
- package/dist/{GoDaddyProvider-DKDe-23b.cjs.map → GoDaddyProvider-CytuBrRm.cjs.map} +1 -1
- package/dist/{GoDaddyProvider-C6aEo0CV.mjs → GoDaddyProvider-W0Dxd5v9.mjs} +2 -2
- package/dist/{GoDaddyProvider-C6aEo0CV.mjs.map → GoDaddyProvider-W0Dxd5v9.mjs.map} +1 -1
- package/dist/{HostingerProvider-CoM1tmcE.cjs → HostingerProvider-CCc9xoBN.cjs} +2 -2
- package/dist/{HostingerProvider-CoM1tmcE.cjs.map → HostingerProvider-CCc9xoBN.cjs.map} +1 -1
- package/dist/{HostingerProvider-BzEOqVG_.mjs → HostingerProvider-DaQr2ueR.mjs} +2 -2
- package/dist/{HostingerProvider-BzEOqVG_.mjs.map → HostingerProvider-DaQr2ueR.mjs.map} +1 -1
- package/dist/{LegacyStateStore-BPy-BWdo.cjs → LegacyStateStore-BDA0rx3b.cjs} +2 -2
- package/dist/{LegacyStateStore-BPy-BWdo.cjs.map → LegacyStateStore-BDA0rx3b.cjs.map} +1 -1
- package/dist/{LegacyStateStore-DQZ9WVJP.mjs → LegacyStateStore-BTcTbCGk.mjs} +2 -2
- package/dist/{LegacyStateStore-DQZ9WVJP.mjs.map → LegacyStateStore-BTcTbCGk.mjs.map} +1 -1
- package/dist/{LocalStateStore-DLMSHOGc.cjs → LocalStateStore-BNuQoZYe.cjs} +2 -2
- package/dist/{LocalStateStore-DLMSHOGc.cjs.map → LocalStateStore-BNuQoZYe.cjs.map} +1 -1
- package/dist/{LocalStateStore-GbMChTQl.mjs → LocalStateStore-CqpCKVvi.mjs} +2 -2
- package/dist/{LocalStateStore-GbMChTQl.mjs.map → LocalStateStore-CqpCKVvi.mjs.map} +1 -1
- package/dist/{S3StateStore-DxxflvGI.mjs → S3StateStore-BpsGWDMK.mjs} +4 -4
- package/dist/{S3StateStore-DxxflvGI.mjs.map → S3StateStore-BpsGWDMK.mjs.map} +1 -1
- package/dist/{S3StateStore-CzRoknWG.cjs → S3StateStore-nrmSClXN.cjs} +4 -4
- package/dist/{S3StateStore-CzRoknWG.cjs.map → S3StateStore-nrmSClXN.cjs.map} +1 -1
- package/dist/{SSMStateStore-DYV0_6qN.mjs → SSMStateStore-DrPCC_VN.mjs} +2 -2
- package/dist/{SSMStateStore-DYV0_6qN.mjs.map → SSMStateStore-DrPCC_VN.mjs.map} +1 -1
- package/dist/{SSMStateStore-D6-G2IaT.cjs → SSMStateStore-hexM8C7n.cjs} +2 -2
- package/dist/{SSMStateStore-D6-G2IaT.cjs.map → SSMStateStore-hexM8C7n.cjs.map} +1 -1
- package/dist/{add-BJzIaBVd.mjs → add-DXMYV5ak.mjs} +4 -4
- package/dist/{add-BJzIaBVd.mjs.map → add-DXMYV5ak.mjs.map} +1 -1
- package/dist/{add-CdkSyhjZ.cjs → add-DgAeo6ht.cjs} +4 -4
- package/dist/{add-CdkSyhjZ.cjs.map → add-DgAeo6ht.cjs.map} +1 -1
- package/dist/{apps-CGYHQ_bC.mjs → apps-Bb05wCBm.mjs} +14 -5
- package/dist/apps-Bb05wCBm.mjs.map +1 -0
- package/dist/{apps-DwSctcdn.cjs → apps-CMLyyVGQ.cjs} +24 -3
- package/dist/apps-CMLyyVGQ.cjs.map +1 -0
- package/dist/{bundler-DSrq790y.mjs → bundler-C1kDZyQ-.mjs} +6 -6
- package/dist/{bundler-DSrq790y.mjs.map → bundler-C1kDZyQ-.mjs.map} +1 -1
- package/dist/{bundler-BwFWenXT.cjs → bundler-CD9Ug2uu.cjs} +6 -6
- package/dist/{bundler-BwFWenXT.cjs.map → bundler-CD9Ug2uu.cjs.map} +1 -1
- package/dist/{cli-Dj51FtjV.cjs → cli-35yoGg9o.cjs} +4 -4
- package/dist/{cli-Dj51FtjV.cjs.map → cli-35yoGg9o.cjs.map} +1 -1
- package/dist/{cli-C_vq_-TX.mjs → cli-BAcJaRG7.mjs} +4 -4
- package/dist/{cli-C_vq_-TX.mjs.map → cli-BAcJaRG7.mjs.map} +1 -1
- package/dist/{compose-vViCpmhM.mjs → compose-BZTh5HR3.mjs} +4 -4
- package/dist/{compose-vViCpmhM.mjs.map → compose-BZTh5HR3.mjs.map} +1 -1
- package/dist/{compose-CQyP3elv.mjs → compose-CAhGIfG8.mjs} +123 -27
- package/dist/compose-CAhGIfG8.mjs.map +1 -0
- package/dist/{compose-BQ50cQvm.cjs → compose-DF08HNJE.cjs} +122 -26
- package/dist/compose-DF08HNJE.cjs.map +1 -0
- package/dist/{compose-DwDO8HCV.cjs → compose-KV6q3cEz.cjs} +4 -4
- package/dist/{compose-DwDO8HCV.cjs.map → compose-KV6q3cEz.cjs.map} +1 -1
- package/dist/{credentials-BpWbdbnM.mjs → credentials-B72Jrk66.mjs} +5 -5
- package/dist/{credentials-BpWbdbnM.mjs.map → credentials-B72Jrk66.mjs.map} +1 -1
- package/dist/{credentials-D4_8P1n4.cjs → credentials-Dmhuj3FX.cjs} +5 -5
- package/dist/{credentials-D4_8P1n4.cjs.map → credentials-Dmhuj3FX.cjs.map} +1 -1
- package/dist/deploy/public.cjs +10 -10
- package/dist/deploy/public.mjs +10 -10
- package/dist/{deploy-C-LoRdGS.cjs → deploy-BV6Tw73K.cjs} +11 -11
- package/dist/{deploy-C-LoRdGS.cjs.map → deploy-BV6Tw73K.cjs.map} +1 -1
- package/dist/{deploy-tDMjMPGx.mjs → deploy-C4XjPy-a.mjs} +11 -11
- package/dist/{deploy-tDMjMPGx.mjs.map → deploy-C4XjPy-a.mjs.map} +1 -1
- package/dist/{docker-Dh_6VdKL.cjs → docker-B0di7_Ub.cjs} +4 -4
- package/dist/{docker-Dh_6VdKL.cjs.map → docker-B0di7_Ub.cjs.map} +1 -1
- package/dist/{docker-Cs86mqnh.mjs → docker-D_NN2Z6W.mjs} +4 -4
- package/dist/{docker-Cs86mqnh.mjs.map → docker-D_NN2Z6W.mjs.map} +1 -1
- package/dist/{dokploy-BH2nvE1B.mjs → dokploy-DDyZ0o4M.mjs} +2 -2
- package/dist/{dokploy-BH2nvE1B.mjs.map → dokploy-DDyZ0o4M.mjs.map} +1 -1
- package/dist/{dokploy-g_mjOwgA.cjs → dokploy-FFNHKz37.cjs} +2 -2
- package/dist/{dokploy-g_mjOwgA.cjs.map → dokploy-FFNHKz37.cjs.map} +1 -1
- package/dist/{eas-CYLLcPHB.mjs → eas-6_Z1ImVg.mjs} +2 -2
- package/dist/{eas-CYLLcPHB.mjs.map → eas-6_Z1ImVg.mjs.map} +1 -1
- package/dist/{eas-DmTuxuGQ.cjs → eas-BetrZzjq.cjs} +2 -2
- package/dist/{eas-DmTuxuGQ.cjs.map → eas-BetrZzjq.cjs.map} +1 -1
- package/dist/{encryption-D1FLAwoj.cjs → encryption-BrRVjItb.cjs} +2 -2
- package/dist/{encryption-D1FLAwoj.cjs.map → encryption-BrRVjItb.cjs.map} +1 -1
- package/dist/{encryption-DaXUWqQj.mjs → encryption-DGnfdO68.mjs} +2 -2
- package/dist/{encryption-DaXUWqQj.mjs.map → encryption-DGnfdO68.mjs.map} +1 -1
- package/dist/{engine-BCAnRM5B.mjs → engine-8TjM26dd.mjs} +8 -8
- package/dist/{engine-BCAnRM5B.mjs.map → engine-8TjM26dd.mjs.map} +1 -1
- package/dist/{engine-BoB6d_i2.cjs → engine-C36N8por.cjs} +8 -8
- package/dist/{engine-BoB6d_i2.cjs.map → engine-C36N8por.cjs.map} +1 -1
- package/dist/{github-B-aHo2RW.cjs → github-BOu0bETi.cjs} +6 -6
- package/dist/{github-B-aHo2RW.cjs.map → github-BOu0bETi.cjs.map} +1 -1
- package/dist/{github-CDz8alqv.mjs → github-Ct6XDkzE.mjs} +6 -6
- package/dist/{github-CDz8alqv.mjs.map → github-Ct6XDkzE.mjs.map} +1 -1
- package/dist/{googlePlay-B3bvoWQe.mjs → googlePlay-BaRsxlJo.mjs} +4 -4
- package/dist/{googlePlay-B3bvoWQe.mjs.map → googlePlay-BaRsxlJo.mjs.map} +1 -1
- package/dist/{googlePlay-DSw0ATpH.cjs → googlePlay-JAxXMaGu.cjs} +4 -4
- package/dist/{googlePlay-DSw0ATpH.cjs.map → googlePlay-JAxXMaGu.cjs.map} +1 -1
- package/dist/index.cjs +59 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +59 -59
- package/dist/index.mjs.map +1 -1
- package/dist/{local-k8h74TMP.mjs → local-D7WVQcJJ.mjs} +2 -2
- package/dist/{local-k8h74TMP.mjs.map → local-D7WVQcJJ.mjs.map} +1 -1
- package/dist/{local-Di2r0D3l.cjs → local-DFPeCIJi.cjs} +2 -2
- package/dist/{local-Di2r0D3l.cjs.map → local-DFPeCIJi.cjs.map} +1 -1
- package/dist/{migrate-0O-FVzry.mjs → migrate-BMIUYmpM.mjs} +4 -4
- package/dist/{migrate-0O-FVzry.mjs.map → migrate-BMIUYmpM.mjs.map} +1 -1
- package/dist/{migrate-CFjGx83P.mjs → migrate-CnE-X40v.mjs} +2 -2
- package/dist/{migrate-CFjGx83P.mjs.map → migrate-CnE-X40v.mjs.map} +1 -1
- package/dist/{migrate-BhAirXeQ.cjs → migrate-CvuWFjos.cjs} +2 -2
- package/dist/{migrate-BhAirXeQ.cjs.map → migrate-CvuWFjos.cjs.map} +1 -1
- package/dist/{migrate-B_FC5R7G.cjs → migrate-DdE8kF0j.cjs} +4 -4
- package/dist/{migrate-B_FC5R7G.cjs.map → migrate-DdE8kF0j.cjs.map} +1 -1
- package/dist/{notes-DaJnmY0Z.mjs → notes-C_4SO0x4.mjs} +2 -2
- package/dist/{notes-DaJnmY0Z.mjs.map → notes-C_4SO0x4.mjs.map} +1 -1
- package/dist/{notes-BUcrKh85.cjs → notes-ORze6zXA.cjs} +2 -2
- package/dist/{notes-BUcrKh85.cjs.map → notes-ORze6zXA.cjs.map} +1 -1
- package/dist/{projectBucket-NSYdtlYC.cjs → projectBucket-C9x0gzEO.cjs} +2 -2
- package/dist/{projectBucket-NSYdtlYC.cjs.map → projectBucket-C9x0gzEO.cjs.map} +1 -1
- package/dist/{projectBucket-p6F4RuBz.mjs → projectBucket-CdRj4IyR.mjs} +2 -2
- package/dist/{projectBucket-p6F4RuBz.mjs.map → projectBucket-CdRj4IyR.mjs.map} +1 -1
- package/dist/{publish-DuxiXHdX.cjs → publish-CL376jrq.cjs} +2 -2
- package/dist/{publish-DuxiXHdX.cjs.map → publish-CL376jrq.cjs.map} +1 -1
- package/dist/{publish-BHDG4BpU.mjs → publish-DkkWS3Pj.mjs} +2 -2
- package/dist/{publish-BHDG4BpU.mjs.map → publish-DkkWS3Pj.mjs.map} +1 -1
- package/dist/{resolve-C8nXwVaN.cjs → resolve-BXzDwYUS.cjs} +4 -4
- package/dist/{resolve-C8nXwVaN.cjs.map → resolve-BXzDwYUS.cjs.map} +1 -1
- package/dist/{resolve-BeQfBSEY.mjs → resolve-CZ_Wel7j.mjs} +4 -4
- package/dist/{resolve-BeQfBSEY.mjs.map → resolve-CZ_Wel7j.mjs.map} +1 -1
- package/dist/{rollback-Cjb-B6EE.mjs → rollback-D_FXI_K5.mjs} +5 -5
- package/dist/{rollback-Cjb-B6EE.mjs.map → rollback-D_FXI_K5.mjs.map} +1 -1
- package/dist/{rollback-BjZiMp-q.cjs → rollback-p1y0KlED.cjs} +5 -5
- package/dist/{rollback-BjZiMp-q.cjs.map → rollback-p1y0KlED.cjs.map} +1 -1
- package/dist/{s3-DIdC6s_w.mjs → s3-CV5baYeq.mjs} +2 -2
- package/dist/{s3-DIdC6s_w.mjs.map → s3-CV5baYeq.mjs.map} +1 -1
- package/dist/{s3-TVjKnrNI.cjs → s3-DTX4Kkmn.cjs} +2 -2
- package/dist/{s3-TVjKnrNI.cjs.map → s3-DTX4Kkmn.cjs.map} +1 -1
- package/dist/{serverSetup-CBuIdnai.cjs → serverSetup-BykJrnYe.cjs} +5 -5
- package/dist/{serverSetup-CBuIdnai.cjs.map → serverSetup-BykJrnYe.cjs.map} +1 -1
- package/dist/{serverSetup-D-GxmelJ.mjs → serverSetup-CkuvIoej.mjs} +5 -5
- package/dist/{serverSetup-D-GxmelJ.mjs.map → serverSetup-CkuvIoej.mjs.map} +1 -1
- package/dist/{sniffer-CsGTdVPU.mjs → sniffer-BIpoMNGz.mjs} +6 -6
- package/dist/{sniffer-CsGTdVPU.mjs.map → sniffer-BIpoMNGz.mjs.map} +1 -1
- package/dist/{sniffer-D5e7wfCY.cjs → sniffer-DiBMi93N.cjs} +6 -6
- package/dist/{sniffer-D5e7wfCY.cjs.map → sniffer-DiBMi93N.cjs.map} +1 -1
- package/dist/{snsSubscriptions-BQhty6C4.cjs → snsSubscriptions-CkO_zk0j.cjs} +2 -2
- package/dist/{snsSubscriptions-BQhty6C4.cjs.map → snsSubscriptions-CkO_zk0j.cjs.map} +1 -1
- package/dist/{snsSubscriptions-CM6Nt0LA.mjs → snsSubscriptions-CrmfcJfv.mjs} +2 -2
- package/dist/{snsSubscriptions-CM6Nt0LA.mjs.map → snsSubscriptions-CrmfcJfv.mjs.map} +1 -1
- package/dist/{sst-BTGhWE7P.mjs → sst-BZ9sTG8H.mjs} +4 -4
- package/dist/{sst-BTGhWE7P.mjs.map → sst-BZ9sTG8H.mjs.map} +1 -1
- package/dist/{sst-D8CkxxJw.cjs → sst-D233GoQY.cjs} +4 -4
- package/dist/{sst-D8CkxxJw.cjs.map → sst-D233GoQY.cjs.map} +1 -1
- package/dist/{stack-WvoaO-LP.cjs → stack-1yXKqI83.cjs} +6 -6
- package/dist/{stack-WvoaO-LP.cjs.map → stack-1yXKqI83.cjs.map} +1 -1
- package/dist/{stack-CixS_Cl_.mjs → stack-pUz70Rmw.mjs} +6 -6
- package/dist/{stack-CixS_Cl_.mjs.map → stack-pUz70Rmw.mjs.map} +1 -1
- package/dist/{stage-B9pNkpNb.mjs → stage-D6E_TlvR.mjs} +5 -5
- package/dist/{stage-B9pNkpNb.mjs.map → stage-D6E_TlvR.mjs.map} +1 -1
- package/dist/{stage-BgVVIkAt.cjs → stage-DAhomyUk.cjs} +5 -5
- package/dist/{stage-BgVVIkAt.cjs.map → stage-DAhomyUk.cjs.map} +1 -1
- package/dist/target/public.cjs +1 -1
- package/dist/target/public.mjs +1 -1
- package/dist/{terminal-b15JatW5.cjs → terminal-CKBLsg6b.cjs} +2 -2
- package/dist/{terminal-b15JatW5.cjs.map → terminal-CKBLsg6b.cjs.map} +1 -1
- package/dist/{terminal-EbVciuKO.mjs → terminal-CRinpE1t.mjs} +2 -2
- package/dist/{terminal-EbVciuKO.mjs.map → terminal-CRinpE1t.mjs.map} +1 -1
- package/package.json +18 -15
- package/dist/apps-CGYHQ_bC.mjs.map +0 -1
- package/dist/apps-DwSctcdn.cjs.map +0 -1
- package/dist/compose-BQ50cQvm.cjs.map +0 -1
- package/dist/compose-CQyP3elv.mjs.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
|
|
2
2
|
import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
|
|
3
|
-
import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, a as findRootDomain, m as createComposeState, o as normalizeDnsConfig, ot as run, st as runOutput, v as recordRelease } from "./credentials-
|
|
3
|
+
import { F as toEmbeddableSecrets, M as initStageSecrets, Q as imageRef, a as findRootDomain, m as createComposeState, o as normalizeDnsConfig, ot as run, st as runOutput, v as recordRelease } from "./credentials-B72Jrk66.mjs";
|
|
4
4
|
import { L as resolveStageTelemetry, ct as ComposeTlsFileMissing, gt as SERVER_IPV4_KEY, yt as isReservedStageKey } from "./workspace-DFGsrjGD.mjs";
|
|
5
|
-
import { C as ensureLocalCertificate,
|
|
5
|
+
import { B as findBuildRoot, C as ensureLocalCertificate, Dt as stageEnv, E as readLocalAuthority, F as imageLayout, Lt as usesTelemetry, P as fromBuildRoot, S as ensureLocalAuthority, St as postgresStatements, T as localCertificateNames, Tt as envFor, Y as nextPrerenderManifest, _t as applyPolicies, b as bucketClient, ct as BACKUPS_SERVICE, d as backendsOf, dt as backupsRoleStatements, f as constructGlobs, gt as applyNotifications, ht as applyLifecycles, l as workerEnvKeys, mt as applyBuckets, t as appEnvKeys, v as LEGACY_LOCAL_LOGIN, vt as applyPostgres, x as pgClient, y as ensurePostgresLogin } from "./apps-Bb05wCBm.mjs";
|
|
6
6
|
import { t as defineTarget } from "./define-6poNqm5O.mjs";
|
|
7
|
-
import { E as withRedisPassword, W as primaryPortKey, X as LOGS_SERVICE, Z as logsAccess, m as loadLocalCredentials, tt as withLogsPassword, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets } from "./compose-
|
|
7
|
+
import { E as withRedisPassword, W as primaryPortKey, X as LOGS_SERVICE, Z as logsAccess, m as loadLocalCredentials, tt as withLogsPassword, w as runsRedis, x as REDIS_SERVICE, y as withGeneratedSecrets } from "./compose-BZTh5HR3.mjs";
|
|
8
8
|
import { i as discover } from "./discover-DbDrCQ8h.mjs";
|
|
9
|
-
import { C as RegistryRequired, E as pinImages, _ as EDGE_NETWORK, a as composeProject, b as edgeComposeFile, d as stackDir, g as EDGE_DYNAMIC_DIR, h as EDGE_CERTS_DIR, i as LOOPBACK_SERVICES, l as envFile, m as EDGE_AWS_CREDENTIALS, n as LOGS_PORT_ENV, o as composeStack, p as withCaddyConfigs, r as LOG_ROTATION, t as EDGE_PORT_ENV, u as replicaNames, v as EDGE_PROJECT, w as assertImagesExist, x as traefikStaticFile, y as EDGE_SERVICE } from "./stack-
|
|
10
|
-
import { a as ensureDockerignore } from "./docker-
|
|
11
|
-
import { a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup } from "./snsSubscriptions-
|
|
9
|
+
import { C as RegistryRequired, E as pinImages, _ as EDGE_NETWORK, a as composeProject, b as edgeComposeFile, d as stackDir, g as EDGE_DYNAMIC_DIR, h as EDGE_CERTS_DIR, i as LOOPBACK_SERVICES, l as envFile, m as EDGE_AWS_CREDENTIALS, n as LOGS_PORT_ENV, o as composeStack, p as withCaddyConfigs, r as LOG_ROTATION, t as EDGE_PORT_ENV, u as replicaNames, v as EDGE_PROJECT, w as assertImagesExist, x as traefikStaticFile, y as EDGE_SERVICE } from "./stack-pUz70Rmw.mjs";
|
|
10
|
+
import { a as ensureDockerignore } from "./docker-D_NN2Z6W.mjs";
|
|
11
|
+
import { a as subscriptionKey, c as HostNotPointingAtServer, f as requiredServerAddress, g as stageDns, h as stackHosts, i as recordedPushSubscriptions, n as SUBSCRIPTION_TYPE, o as subscriptionResource, p as serverAddressHint, r as confirmPendingSubscriptions, s as topicConnection, t as PushSubscriptionsUnconfirmed, u as isLocalHost, v as systemLookup } from "./snsSubscriptions-CrmfcJfv.mjs";
|
|
12
12
|
import { i as installedFrom } from "./drivers-uxLBq3e3.mjs";
|
|
13
13
|
import { a as dnsResources, c as currentActor, d as DeployJournal, n as reportDatabaseRuns, o as forgetDnsResource, r as reportPlannedSeeds, s as recordDnsChanges, t as DeploySeedsFailed } from "./seeds-BCC8vAXR.mjs";
|
|
14
14
|
import { f as plannedSeeds, o as SeedFailed, p as seedDatabases, u as migrateDatabases } from "./databases-mzSUFBTw.mjs";
|
|
15
|
-
import { dirname, join } from "node:path";
|
|
15
|
+
import { dirname, join, relative } from "node:path";
|
|
16
16
|
import { existsSync } from "node:fs";
|
|
17
17
|
import { chmod, mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
18
18
|
import { hostname, userInfo } from "node:os";
|
|
@@ -1064,7 +1064,7 @@ var EdgeResponseTooLarge = class extends GkmError {
|
|
|
1064
1064
|
* verified, for an `https:` URL, and plain HTTP for an `http:` one — with
|
|
1065
1065
|
* the URL's host as SNI and `Host` wherever it connects.
|
|
1066
1066
|
*/
|
|
1067
|
-
const edgeFetch = ({ url, ca, connectTo, connectPort, authorization, timeoutMs, signal, read }) => {
|
|
1067
|
+
const edgeFetch = ({ url, ca, connectTo, connectPort, authorization, timeoutMs, signal, read, headers }) => {
|
|
1068
1068
|
const target = new URL(url);
|
|
1069
1069
|
const secure = target.protocol === "https:";
|
|
1070
1070
|
const request$2 = secure ? request$1 : request;
|
|
@@ -1076,6 +1076,7 @@ const edgeFetch = ({ url, ca, connectTo, connectPort, authorization, timeoutMs,
|
|
|
1076
1076
|
path: `${target.pathname}${target.search}`,
|
|
1077
1077
|
method: "GET",
|
|
1078
1078
|
headers: {
|
|
1079
|
+
...headers,
|
|
1079
1080
|
host: target.host,
|
|
1080
1081
|
...authorization ? { authorization } : {}
|
|
1081
1082
|
},
|
|
@@ -1083,11 +1084,14 @@ const edgeFetch = ({ url, ca, connectTo, connectPort, authorization, timeoutMs,
|
|
|
1083
1084
|
...signal ? { signal } : {},
|
|
1084
1085
|
timeout: timeoutMs
|
|
1085
1086
|
}, (res) => {
|
|
1086
|
-
const
|
|
1087
|
+
const answered = {
|
|
1088
|
+
status: res.statusCode ?? 0,
|
|
1089
|
+
headers: res.headers
|
|
1090
|
+
};
|
|
1087
1091
|
if (!read) {
|
|
1088
1092
|
res.resume();
|
|
1089
1093
|
res.on("end", () => resolve({
|
|
1090
|
-
|
|
1094
|
+
...answered,
|
|
1091
1095
|
body: ""
|
|
1092
1096
|
}));
|
|
1093
1097
|
res.on("error", reject);
|
|
@@ -1104,7 +1108,7 @@ const edgeFetch = ({ url, ca, connectTo, connectPort, authorization, timeoutMs,
|
|
|
1104
1108
|
chunks.push(chunk);
|
|
1105
1109
|
});
|
|
1106
1110
|
res.on("end", () => resolve({
|
|
1107
|
-
|
|
1111
|
+
...answered,
|
|
1108
1112
|
body: Buffer.concat(chunks).toString("utf-8")
|
|
1109
1113
|
}));
|
|
1110
1114
|
res.on("error", reject);
|
|
@@ -1263,28 +1267,46 @@ async function ensureTopicSubscriptions(input) {
|
|
|
1263
1267
|
*/
|
|
1264
1268
|
const WARMUP_TIMEOUT_MS = 3e4;
|
|
1265
1269
|
/**
|
|
1266
|
-
*
|
|
1267
|
-
*
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
+
* Next's on-demand revalidation header: a request carrying the build's
|
|
1271
|
+
* preview-mode id is rendered afresh whatever the page's cache says.
|
|
1272
|
+
*/
|
|
1273
|
+
const NEXT_REVALIDATE_HEADER = "x-prerender-revalidate";
|
|
1274
|
+
/**
|
|
1275
|
+
* What Next answered a request from: `HIT` and `STALE` are a cached copy —
|
|
1276
|
+
* on a fresh deploy, the build's — and the request rendered nothing.
|
|
1277
|
+
*/
|
|
1278
|
+
const NEXT_CACHE_HEADER = "x-nextjs-cache";
|
|
1279
|
+
const FROM_CACHE = /* @__PURE__ */ new Set(["HIT", "STALE"]);
|
|
1280
|
+
/**
|
|
1281
|
+
* Asks the site for its `/sitemap.xml` — a sitemap index's sitemaps followed
|
|
1282
|
+
* one level — then for `/` and every page it lists, up to `maxUrls` pages in
|
|
1283
|
+
* all, `concurrency` at a time. The sitemap comes first so that, rendered
|
|
1284
|
+
* again with `headers`, it lists what the deployed APIs hold. Only pages on
|
|
1285
|
+
* the site's own origin are asked: a sitemap may list another's, which this
|
|
1286
|
+
* deploy did not start.
|
|
1270
1287
|
*/
|
|
1271
1288
|
async function warmSite(options) {
|
|
1272
|
-
const { fetch, edge = {}, maxUrls = 500, concurrency = 4, timeoutMs = WARMUP_TIMEOUT_MS } = options;
|
|
1289
|
+
const { fetch, edge = {}, maxUrls = 500, concurrency = 4, timeoutMs = WARMUP_TIMEOUT_MS, headers } = options;
|
|
1273
1290
|
const origin = new URL(options.url).origin;
|
|
1274
1291
|
const result = {
|
|
1275
1292
|
warmed: [],
|
|
1293
|
+
cached: [],
|
|
1276
1294
|
warnings: [],
|
|
1277
1295
|
leftOut: 0
|
|
1278
1296
|
};
|
|
1279
1297
|
/** One GET; a failure is a warning, and `undefined`. */
|
|
1280
1298
|
const get = async (url, read) => {
|
|
1281
1299
|
try {
|
|
1282
|
-
|
|
1300
|
+
const response = await fetch({
|
|
1283
1301
|
url,
|
|
1284
1302
|
...edge,
|
|
1303
|
+
...headers ? { headers } : {},
|
|
1285
1304
|
timeoutMs,
|
|
1286
1305
|
read
|
|
1287
1306
|
});
|
|
1307
|
+
const cache = response.headers?.[NEXT_CACHE_HEADER];
|
|
1308
|
+
if (typeof cache === "string" && FROM_CACHE.has(cache.toUpperCase())) result.cached.push(url);
|
|
1309
|
+
return response;
|
|
1288
1310
|
} catch (error) {
|
|
1289
1311
|
if (edge.signal?.aborted) throw error;
|
|
1290
1312
|
result.warnings.push({
|
|
@@ -1318,7 +1340,6 @@ async function warmSite(options) {
|
|
|
1318
1340
|
return readSitemap(response.body);
|
|
1319
1341
|
};
|
|
1320
1342
|
const root = `${origin}/`;
|
|
1321
|
-
await warm(root);
|
|
1322
1343
|
const pages = /* @__PURE__ */ new Set([root]);
|
|
1323
1344
|
const sameOrigin = (loc) => {
|
|
1324
1345
|
if (!URL.canParse(loc, root)) return void 0;
|
|
@@ -1337,6 +1358,7 @@ async function warmSite(options) {
|
|
|
1337
1358
|
const read = await pool([...new Set(top.locs.map(sameOrigin).filter((u) => u !== void 0))], concurrency, sitemap);
|
|
1338
1359
|
for (const child of read) if (child?.kind === "urlset") list(child.locs);
|
|
1339
1360
|
} else if (top) list(top.locs);
|
|
1361
|
+
await warm(root);
|
|
1340
1362
|
const listed = [...pages].slice(1);
|
|
1341
1363
|
const room = Math.max(0, maxUrls - 1);
|
|
1342
1364
|
result.leftOut = Math.max(0, listed.length - room);
|
|
@@ -1344,6 +1366,42 @@ async function warmSite(options) {
|
|
|
1344
1366
|
return result;
|
|
1345
1367
|
}
|
|
1346
1368
|
/**
|
|
1369
|
+
* Prints the preview-mode id of the prerender manifest at `argv[1]`, and
|
|
1370
|
+
* nothing else of it: the manifest's signing and encryption keys never leave
|
|
1371
|
+
* the container. Exit 3 when the manifest has no id.
|
|
1372
|
+
*/
|
|
1373
|
+
const PRINT_PREVIEW_MODE_ID = [
|
|
1374
|
+
"let m;",
|
|
1375
|
+
"try { m = JSON.parse(require('fs').readFileSync(process.argv[1], 'utf8')); }",
|
|
1376
|
+
"catch (e) { process.stderr.write(String(e && e.message)); process.exit(2); }",
|
|
1377
|
+
"const id = m && m.preview && m.preview.previewModeId;",
|
|
1378
|
+
"if (typeof id !== 'string' || id === '') process.exit(3);",
|
|
1379
|
+
"process.stdout.write(id);"
|
|
1380
|
+
].join(" ");
|
|
1381
|
+
/**
|
|
1382
|
+
* The preview-mode id of a running Next site, from the prerender manifest
|
|
1383
|
+
* of its image — `manifest`, a path inside the container — by running the
|
|
1384
|
+
* image's own `node` in it through `exec` (`docker exec`, on whichever
|
|
1385
|
+
* engine runs the stack). Never read from this machine's disk: the image
|
|
1386
|
+
* that runs is the one whose id counts.
|
|
1387
|
+
*
|
|
1388
|
+
* The id is a secret of the site's: it is returned to the warm-up and
|
|
1389
|
+
* nowhere else — never logged, never written.
|
|
1390
|
+
*/
|
|
1391
|
+
async function nextPreviewModeId(exec, manifest) {
|
|
1392
|
+
const { code, stdout, stderr } = await exec([
|
|
1393
|
+
"node",
|
|
1394
|
+
"-e",
|
|
1395
|
+
PRINT_PREVIEW_MODE_ID,
|
|
1396
|
+
manifest
|
|
1397
|
+
]);
|
|
1398
|
+
if (code === 0 && stdout) return { id: stdout };
|
|
1399
|
+
if (code === 3 || code === 0) return { reason: `${manifest} has no preview.previewModeId, which this version of Next may not write` };
|
|
1400
|
+
const said = stderr.trim().split("\n")[0];
|
|
1401
|
+
if (code === null) return { reason: said || "its container is not running" };
|
|
1402
|
+
return { reason: `could not read ${manifest} in its container (${said || `exit ${code}`})` };
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1347
1405
|
* Reads a sitemap (sitemaps.org): each entry's `<loc>`, entity-decoded or
|
|
1348
1406
|
* from CDATA. Only an unprefixed `<loc>` is an entry's — an `<image:loc>` is
|
|
1349
1407
|
* an image on a page, not a page.
|
|
@@ -2352,11 +2410,13 @@ async function verifyCompose(ctx, run, deps) {
|
|
|
2352
2410
|
if (stack.logs) reportLogs(ctx, stack.logs, stack.local, run.server);
|
|
2353
2411
|
}
|
|
2354
2412
|
/**
|
|
2355
|
-
* Each server-rendered site (`next`, `tanstack`) asked for its
|
|
2356
|
-
* page
|
|
2357
|
-
* `warmup.ts`. Its image was built with no API reachable, so each
|
|
2358
|
-
* renders on its first request: this is that request, made before any
|
|
2359
|
-
* visitor's.
|
|
2413
|
+
* Each server-rendered site (`next`, `tanstack`) asked for its sitemap, its
|
|
2414
|
+
* `/` and every page the sitemap lists, through the edge as `checkApp` asks
|
|
2415
|
+
* it — see `warmup.ts`. Its image was built with no API reachable, so each
|
|
2416
|
+
* page renders on its first request: this is that request, made before any
|
|
2417
|
+
* visitor's. A Next site is asked with its on-demand revalidation header,
|
|
2418
|
+
* so a page its build cached (empty) is rendered again from the deployed
|
|
2419
|
+
* APIs rather than served from that cache.
|
|
2360
2420
|
*
|
|
2361
2421
|
* Only ever said, never failed on: every app is already healthy, and a page
|
|
2362
2422
|
* that did not warm renders on the next request for it.
|
|
@@ -2372,9 +2432,11 @@ async function warmSites(ctx, run, deps, options) {
|
|
|
2372
2432
|
continue;
|
|
2373
2433
|
}
|
|
2374
2434
|
try {
|
|
2375
|
-
const
|
|
2435
|
+
const headers = app.variant === "next" ? await forceRender(ctx, run, deps, app) : {};
|
|
2436
|
+
const { warmed, cached, warnings, leftOut } = await warmSite({
|
|
2376
2437
|
url: app.url,
|
|
2377
2438
|
fetch: deps.fetch ?? edgeFetch,
|
|
2439
|
+
headers,
|
|
2378
2440
|
edge: {
|
|
2379
2441
|
...options.ca ? { ca: options.ca } : {},
|
|
2380
2442
|
...app.auth ? { authorization: basicAuthorization(app.auth) } : {},
|
|
@@ -2382,11 +2444,12 @@ async function warmSites(ctx, run, deps, options) {
|
|
|
2382
2444
|
signal: ctx.signal
|
|
2383
2445
|
}
|
|
2384
2446
|
});
|
|
2385
|
-
const said = `warmed ${warmed.length} page(s)${warnings.length > 0 ? `, ${warnings.length} warning(s)` : ""}`;
|
|
2386
|
-
if (warnings.length === 0) ctx.logger.info(` ✓ ${app.name.padEnd(12)} ${said}`);
|
|
2447
|
+
const said = `warmed ${warmed.length} page(s)${cached.length > 0 ? `, ${cached.length} served from the build cache` : ""}${warnings.length > 0 ? `, ${warnings.length} warning(s)` : ""}`;
|
|
2448
|
+
if (warnings.length === 0) ctx.logger.info(` ✓ ${app.name.padEnd(12)} ${said}${cached.length > 0 ? `: ${listed(cached)}` : ""}`);
|
|
2387
2449
|
else {
|
|
2388
2450
|
ctx.logger.warn(` ⚠ ${app.name.padEnd(12)} ${said}:`);
|
|
2389
2451
|
for (const { url, reason } of warnings) ctx.logger.warn(` ${url}: ${reason}`);
|
|
2452
|
+
if (cached.length > 0) ctx.logger.warn(` served from the build cache: ${listed(cached)}`);
|
|
2390
2453
|
}
|
|
2391
2454
|
if (leftOut > 0) ctx.logger.info(` ${leftOut} more page(s) in its sitemap were not asked: at most 500 are warmed per site`);
|
|
2392
2455
|
} catch (error) {
|
|
@@ -2395,6 +2458,39 @@ async function warmSites(ctx, run, deps, options) {
|
|
|
2395
2458
|
}
|
|
2396
2459
|
}
|
|
2397
2460
|
}
|
|
2461
|
+
/** The most pages a summary names; the rest are counted. */
|
|
2462
|
+
const LISTED_PAGES = 10;
|
|
2463
|
+
/** Pages by path, `/about`, the first {@link LISTED_PAGES} of them. */
|
|
2464
|
+
function listed(urls) {
|
|
2465
|
+
const paths = urls.map((url) => {
|
|
2466
|
+
const { pathname, search } = new URL(url);
|
|
2467
|
+
return `${pathname}${search}`;
|
|
2468
|
+
});
|
|
2469
|
+
const shown = paths.slice(0, LISTED_PAGES).join(", ");
|
|
2470
|
+
return paths.length > LISTED_PAGES ? `${shown} and ${paths.length - LISTED_PAGES} more` : shown;
|
|
2471
|
+
}
|
|
2472
|
+
/**
|
|
2473
|
+
* The header that has a Next site render each warmed page whatever its
|
|
2474
|
+
* cache says: `x-prerender-revalidate` with the preview-mode id of the image
|
|
2475
|
+
* running — read in its container, through the stack's Docker engine, at
|
|
2476
|
+
* the path the generated Dockerfile puts the standalone output at. Where the
|
|
2477
|
+
* id cannot be read, said once, and the site is warmed with plain requests.
|
|
2478
|
+
*/
|
|
2479
|
+
async function forceRender(ctx, run, deps, app) {
|
|
2480
|
+
let reason;
|
|
2481
|
+
try {
|
|
2482
|
+
const root = ctx.workspace.root;
|
|
2483
|
+
const gkmRoot = relative(findBuildRoot(root), root) || ".";
|
|
2484
|
+
const lookup = await nextPreviewModeId((command) => deps.docker.exec(run.ref, app.name, command), nextPrerenderManifest(fromBuildRoot({ gkmRoot }, app.path)));
|
|
2485
|
+
if ("id" in lookup) return { [NEXT_REVALIDATE_HEADER]: lookup.id };
|
|
2486
|
+
reason = lookup.reason;
|
|
2487
|
+
} catch (error) {
|
|
2488
|
+
if (ctx.signal.aborted) throw error;
|
|
2489
|
+
reason = error instanceof Error ? error.message : String(error);
|
|
2490
|
+
}
|
|
2491
|
+
ctx.logger.warn(` ⚠ ${app.name.padEnd(12)} can't force ISR pages to render: ${reason}. Warming with plain requests; a page Next cached at build is served from that cache until its revalidate window ends.`);
|
|
2492
|
+
return {};
|
|
2493
|
+
}
|
|
2398
2494
|
/**
|
|
2399
2495
|
* The SNS subscriptions the stage's providers made before the workers were
|
|
2400
2496
|
* up: each still pending is subscribed again, so SNS resends its
|
|
@@ -2778,4 +2874,4 @@ function composeTarget(options = {}) {
|
|
|
2778
2874
|
//#endregion
|
|
2779
2875
|
export { edgePorts as a, edgeRef as c, dockerHost as d, sshAccess as f, projectNetwork as h, ComposePushNeedsBuild as i, removeEdgeRoutes as l, dockerCompose as m, compose_exports as n, stackOverrideFile as o, sshTarget as p, ComposePinNeedsPull as r, deployedStackSecrets as s, composeTarget as t, composeServer as u };
|
|
2780
2876
|
|
|
2781
|
-
//# sourceMappingURL=compose-
|
|
2877
|
+
//# sourceMappingURL=compose-CAhGIfG8.mjs.map
|