@geekmidas/cli 10.0.0-alpha.167 → 10.0.0-alpha.169

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.
Files changed (251) hide show
  1. package/dist/{EndpointGenerator-DxrRqfJ3.cjs → EndpointGenerator-C1h_wExz.cjs} +2 -2
  2. package/dist/{EndpointGenerator-DxrRqfJ3.cjs.map → EndpointGenerator-C1h_wExz.cjs.map} +1 -1
  3. package/dist/{EndpointGenerator-B5BKAoLz.mjs → EndpointGenerator-CSKhAD6W.mjs} +2 -2
  4. package/dist/{EndpointGenerator-B5BKAoLz.mjs.map → EndpointGenerator-CSKhAD6W.mjs.map} +1 -1
  5. package/dist/{GoDaddyProvider-Dci0SlN5.mjs → GoDaddyProvider-Cvmy2SPq.mjs} +2 -2
  6. package/dist/{GoDaddyProvider-Dci0SlN5.mjs.map → GoDaddyProvider-Cvmy2SPq.mjs.map} +1 -1
  7. package/dist/{GoDaddyProvider-o6DJAsBZ.cjs → GoDaddyProvider-KmdZlFSL.cjs} +2 -2
  8. package/dist/{GoDaddyProvider-o6DJAsBZ.cjs.map → GoDaddyProvider-KmdZlFSL.cjs.map} +1 -1
  9. package/dist/{HostingerProvider-BzHPhONW.cjs → HostingerProvider--IyQKlIC.cjs} +2 -2
  10. package/dist/{HostingerProvider-BzHPhONW.cjs.map → HostingerProvider--IyQKlIC.cjs.map} +1 -1
  11. package/dist/{HostingerProvider-Dd5x1zvF.mjs → HostingerProvider-DYf1XT_W.mjs} +2 -2
  12. package/dist/{HostingerProvider-Dd5x1zvF.mjs.map → HostingerProvider-DYf1XT_W.mjs.map} +1 -1
  13. package/dist/{LegacyStateStore-tqY0hM8z.cjs → LegacyStateStore-8GVMHI12.cjs} +2 -2
  14. package/dist/{LegacyStateStore-tqY0hM8z.cjs.map → LegacyStateStore-8GVMHI12.cjs.map} +1 -1
  15. package/dist/{LegacyStateStore-CpF6rmZc.mjs → LegacyStateStore-BOZj8nj1.mjs} +2 -2
  16. package/dist/{LegacyStateStore-CpF6rmZc.mjs.map → LegacyStateStore-BOZj8nj1.mjs.map} +1 -1
  17. package/dist/{LocalStateStore-BYMUEGZN.cjs → LocalStateStore-CfBABk6G.cjs} +2 -2
  18. package/dist/{LocalStateStore-BYMUEGZN.cjs.map → LocalStateStore-CfBABk6G.cjs.map} +1 -1
  19. package/dist/{LocalStateStore-Adp96xPy.mjs → LocalStateStore-D3wY7Qkb.mjs} +2 -2
  20. package/dist/{LocalStateStore-Adp96xPy.mjs.map → LocalStateStore-D3wY7Qkb.mjs.map} +1 -1
  21. package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs → OpenApiTsGenerator-5xPn-p65.mjs} +2 -2
  22. package/dist/{OpenApiTsGenerator-Vaf0pI8u.mjs.map → OpenApiTsGenerator-5xPn-p65.mjs.map} +1 -1
  23. package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs → OpenApiTsGenerator-CzrLGzC0.cjs} +2 -2
  24. package/dist/{OpenApiTsGenerator-DOTLKBFf.cjs.map → OpenApiTsGenerator-CzrLGzC0.cjs.map} +1 -1
  25. package/dist/{S3StateStore-DjXyhGIP.cjs → S3StateStore-C-Fs7CWD.cjs} +4 -4
  26. package/dist/{S3StateStore-DjXyhGIP.cjs.map → S3StateStore-C-Fs7CWD.cjs.map} +1 -1
  27. package/dist/{S3StateStore-13Go3hfM.mjs → S3StateStore-CO92LBQI.mjs} +4 -4
  28. package/dist/{S3StateStore-13Go3hfM.mjs.map → S3StateStore-CO92LBQI.mjs.map} +1 -1
  29. package/dist/{SSMStateStore-CQHUyH-c.mjs → SSMStateStore-Ns7FpnmB.mjs} +2 -2
  30. package/dist/{SSMStateStore-CQHUyH-c.mjs.map → SSMStateStore-Ns7FpnmB.mjs.map} +1 -1
  31. package/dist/{SSMStateStore-DspMPho-.cjs → SSMStateStore-t6mkXQew.cjs} +2 -2
  32. package/dist/{SSMStateStore-DspMPho-.cjs.map → SSMStateStore-t6mkXQew.cjs.map} +1 -1
  33. package/dist/{SubscriberGenerator-BybB6uez.mjs → SubscriberGenerator-CfZWX0lT.mjs} +6 -6
  34. package/dist/SubscriberGenerator-CfZWX0lT.mjs.map +1 -0
  35. package/dist/{SubscriberGenerator-mZpSuSU7.cjs → SubscriberGenerator-DMi4siph.cjs} +5 -5
  36. package/dist/SubscriberGenerator-DMi4siph.cjs.map +1 -0
  37. package/dist/{add-Dt8QKSOw.mjs → add-Byp8-rRf.mjs} +11 -11
  38. package/dist/add-Byp8-rRf.mjs.map +1 -0
  39. package/dist/{add-DsxJ0Knr.cjs → add-C3oUiBAc.cjs} +10 -10
  40. package/dist/add-C3oUiBAc.cjs.map +1 -0
  41. package/dist/{apps-w2sRQKCr.mjs → apps-C21-TXqR.mjs} +106 -50
  42. package/dist/apps-C21-TXqR.mjs.map +1 -0
  43. package/dist/{apps-C6s-trVp.cjs → apps-D_-DXV0H.cjs} +110 -48
  44. package/dist/apps-D_-DXV0H.cjs.map +1 -0
  45. package/dist/{bundler-AzkSRAuu.cjs → bundler-D43S2YTJ.cjs} +6 -6
  46. package/dist/{bundler-AzkSRAuu.cjs.map → bundler-D43S2YTJ.cjs.map} +1 -1
  47. package/dist/{bundler-BCWWne6N.mjs → bundler-DjfpJ0mX.mjs} +6 -6
  48. package/dist/{bundler-BCWWne6N.mjs.map → bundler-DjfpJ0mX.mjs.map} +1 -1
  49. package/dist/{cli-DSGw0Mw-.mjs → cli-00fMnBFk.mjs} +4 -4
  50. package/dist/{cli-DSGw0Mw-.mjs.map → cli-00fMnBFk.mjs.map} +1 -1
  51. package/dist/{cli-OGss08bZ.cjs → cli-CYBb8rgx.cjs} +4 -4
  52. package/dist/{cli-OGss08bZ.cjs.map → cli-CYBb8rgx.cjs.map} +1 -1
  53. package/dist/{compose-QSBmhr4V.cjs → compose-D9ksPt5H.cjs} +11 -11
  54. package/dist/compose-D9ksPt5H.cjs.map +1 -0
  55. package/dist/{compose-BqTuzitb.cjs → compose-Dgd-yfJT.cjs} +8 -8
  56. package/dist/compose-Dgd-yfJT.cjs.map +1 -0
  57. package/dist/{compose-Csegtvq_.mjs → compose-MwgjPj_A.mjs} +12 -12
  58. package/dist/compose-MwgjPj_A.mjs.map +1 -0
  59. package/dist/{compose-RhuFQmZS.mjs → compose-rn_DWcup.mjs} +9 -9
  60. package/dist/compose-rn_DWcup.mjs.map +1 -0
  61. package/dist/config.cjs +2 -2
  62. package/dist/config.mjs +2 -2
  63. package/dist/{credentialSchemas-mz9QZTYh.mjs → credentialSchemas-BzJiK1nQ.mjs} +4 -4
  64. package/dist/credentialSchemas-BzJiK1nQ.mjs.map +1 -0
  65. package/dist/{credentialSchemas-BAklWDna.cjs → credentialSchemas-OVXofU-r.cjs} +3 -3
  66. package/dist/credentialSchemas-OVXofU-r.cjs.map +1 -0
  67. package/dist/{credentials-CORvhcrO.cjs → credentials-C6n_kdu4.cjs} +7 -7
  68. package/dist/{credentials-CORvhcrO.cjs.map → credentials-C6n_kdu4.cjs.map} +1 -1
  69. package/dist/{credentials-D4DUPPPP.mjs → credentials-kK0X754I.mjs} +7 -7
  70. package/dist/{credentials-D4DUPPPP.mjs.map → credentials-kK0X754I.mjs.map} +1 -1
  71. package/dist/{databases-CrKh5jw6.cjs → databases-CuTL1e7s.cjs} +3 -3
  72. package/dist/databases-CuTL1e7s.cjs.map +1 -0
  73. package/dist/{databases-C1qqNxTu.mjs → databases-zN-gEox0.mjs} +4 -4
  74. package/dist/databases-zN-gEox0.mjs.map +1 -0
  75. package/dist/deploy/public.cjs +12 -12
  76. package/dist/deploy/public.mjs +12 -12
  77. package/dist/{deploy-BwJ7uWXd.cjs → deploy-C1gf4bT-.cjs} +47 -45
  78. package/dist/deploy-C1gf4bT-.cjs.map +1 -0
  79. package/dist/{deploy-DDfnQm8l.mjs → deploy-CFuDCbTq.mjs} +48 -46
  80. package/dist/deploy-CFuDCbTq.mjs.map +1 -0
  81. package/dist/{destroy-nTNRfdy6.cjs → destroy-CMz0BPEe.cjs} +9 -9
  82. package/dist/{destroy-nTNRfdy6.cjs.map → destroy-CMz0BPEe.cjs.map} +1 -1
  83. package/dist/{destroy-DKt8S051.mjs → destroy-UTWZmaGn.mjs} +9 -9
  84. package/dist/{destroy-DKt8S051.mjs.map → destroy-UTWZmaGn.mjs.map} +1 -1
  85. package/dist/{discover-CRywE7yc.cjs → discover-39VKSE2i.cjs} +5 -5
  86. package/dist/discover-39VKSE2i.cjs.map +1 -0
  87. package/dist/{discover-DbDrCQ8h.mjs → discover-B_PDDaVj.mjs} +6 -6
  88. package/dist/discover-B_PDDaVj.mjs.map +1 -0
  89. package/dist/{docker-Ele34O8z.mjs → docker-BIuidyEB.mjs} +11 -11
  90. package/dist/docker-BIuidyEB.mjs.map +1 -0
  91. package/dist/{docker-Dy1ZJUzV.cjs → docker-BrdCdNwm.cjs} +10 -10
  92. package/dist/docker-BrdCdNwm.cjs.map +1 -0
  93. package/dist/{dokploy-BrfA2m5K.mjs → dokploy--ndQ72iu.mjs} +2 -2
  94. package/dist/{dokploy-BrfA2m5K.mjs.map → dokploy--ndQ72iu.mjs.map} +1 -1
  95. package/dist/{dokploy-DN2W1YIH.cjs → dokploy-D7ZChrtZ.cjs} +2 -2
  96. package/dist/{dokploy-DN2W1YIH.cjs.map → dokploy-D7ZChrtZ.cjs.map} +1 -1
  97. package/dist/{eas-CO3ogve5.mjs → eas-BCcpBC4k.mjs} +3 -3
  98. package/dist/{eas-CO3ogve5.mjs.map → eas-BCcpBC4k.mjs.map} +1 -1
  99. package/dist/{eas-BRBdxmwe.cjs → eas-DCvA907G.cjs} +3 -3
  100. package/dist/{eas-BRBdxmwe.cjs.map → eas-DCvA907G.cjs.map} +1 -1
  101. package/dist/{encryption-BZ1zgtF5.cjs → encryption-8TklMCh2.cjs} +4 -4
  102. package/dist/encryption-8TklMCh2.cjs.map +1 -0
  103. package/dist/{encryption-CHmfNBAy.mjs → encryption-C2LzfQp8.mjs} +5 -5
  104. package/dist/encryption-C2LzfQp8.mjs.map +1 -0
  105. package/dist/{engine-DewbDHOq.cjs → engine-BMoNLayn.cjs} +37 -37
  106. package/dist/engine-BMoNLayn.cjs.map +1 -0
  107. package/dist/{engine-B3Gmu8-O.mjs → engine-D-_nkxQL.mjs} +38 -38
  108. package/dist/engine-D-_nkxQL.mjs.map +1 -0
  109. package/dist/{github-DU3iEmJN.mjs → github-B_zfStMR.mjs} +8 -8
  110. package/dist/{github-DU3iEmJN.mjs.map → github-B_zfStMR.mjs.map} +1 -1
  111. package/dist/{github-DPNgIxdc.cjs → github-CZjNDPAp.cjs} +8 -8
  112. package/dist/{github-DPNgIxdc.cjs.map → github-CZjNDPAp.cjs.map} +1 -1
  113. package/dist/{googlePlay-KPHn9H2f.mjs → googlePlay-BcVRYMh4.mjs} +4 -4
  114. package/dist/{googlePlay-KPHn9H2f.mjs.map → googlePlay-BcVRYMh4.mjs.map} +1 -1
  115. package/dist/{googlePlay-C2jnPqYn.cjs → googlePlay-Btn0lut5.cjs} +4 -4
  116. package/dist/{googlePlay-C2jnPqYn.cjs.map → googlePlay-Btn0lut5.cjs.map} +1 -1
  117. package/dist/{iam-C2sf6AUi.cjs → iam-BoYPPNdM.cjs} +2 -2
  118. package/dist/{iam-C2sf6AUi.cjs.map → iam-BoYPPNdM.cjs.map} +1 -1
  119. package/dist/{iam-CW61VcT3.mjs → iam-ra1_Y405.mjs} +2 -2
  120. package/dist/{iam-CW61VcT3.mjs.map → iam-ra1_Y405.mjs.map} +1 -1
  121. package/dist/index.cjs +79 -79
  122. package/dist/index.cjs.map +1 -1
  123. package/dist/index.mjs +80 -80
  124. package/dist/index.mjs.map +1 -1
  125. package/dist/{local-CwR2DW6i.mjs → local-B9Vniy-F.mjs} +3 -3
  126. package/dist/{local-CwR2DW6i.mjs.map → local-B9Vniy-F.mjs.map} +1 -1
  127. package/dist/{local-BxjA0EXj.cjs → local-DxfqOu7A.cjs} +3 -3
  128. package/dist/{local-BxjA0EXj.cjs.map → local-DxfqOu7A.cjs.map} +1 -1
  129. package/dist/{migrate-B0a3WY4X.cjs → migrate-C1u7Tl7D.cjs} +7 -7
  130. package/dist/{migrate-B0a3WY4X.cjs.map → migrate-C1u7Tl7D.cjs.map} +1 -1
  131. package/dist/{migrate-CYtM1UBH.cjs → migrate-CcYfCpMe.cjs} +3 -3
  132. package/dist/{migrate-CYtM1UBH.cjs.map → migrate-CcYfCpMe.cjs.map} +1 -1
  133. package/dist/{migrate-vWy2CUoi.mjs → migrate-b5rcr4sw.mjs} +7 -7
  134. package/dist/{migrate-vWy2CUoi.mjs.map → migrate-b5rcr4sw.mjs.map} +1 -1
  135. package/dist/{migrate-DHWy64pc.mjs → migrate-blnmh2Tm.mjs} +3 -3
  136. package/dist/{migrate-DHWy64pc.mjs.map → migrate-blnmh2Tm.mjs.map} +1 -1
  137. package/dist/{notes-9bOfe08J.mjs → notes-CT1jNLDC.mjs} +13 -12
  138. package/dist/notes-CT1jNLDC.mjs.map +1 -0
  139. package/dist/{notes-DRdlsCYV.cjs → notes-Cw3JQ0Y_.cjs} +12 -11
  140. package/dist/notes-Cw3JQ0Y_.cjs.map +1 -0
  141. package/dist/openapi.cjs +3 -3
  142. package/dist/openapi.mjs +3 -3
  143. package/dist/{projectBucket-gIQUuhGm.cjs → projectBucket-8hJmCusk.cjs} +2 -2
  144. package/dist/{projectBucket-gIQUuhGm.cjs.map → projectBucket-8hJmCusk.cjs.map} +1 -1
  145. package/dist/{projectBucket-Cd7sEDhG.mjs → projectBucket-DJNi2yJL.mjs} +2 -2
  146. package/dist/{projectBucket-Cd7sEDhG.mjs.map → projectBucket-DJNi2yJL.mjs.map} +1 -1
  147. package/dist/{publish-DOxz4mxf.mjs → publish-CMaPsMsT.mjs} +2 -2
  148. package/dist/{publish-DOxz4mxf.mjs.map → publish-CMaPsMsT.mjs.map} +1 -1
  149. package/dist/{publish-BgDFx08y.cjs → publish-Dlb-rrc5.cjs} +2 -2
  150. package/dist/{publish-BgDFx08y.cjs.map → publish-Dlb-rrc5.cjs.map} +1 -1
  151. package/dist/{ready-BjFMu_1J.mjs → ready-COJHr1Yi.mjs} +9 -9
  152. package/dist/ready-COJHr1Yi.mjs.map +1 -0
  153. package/dist/{ready-eVMJIcWn.cjs → ready-DcD0SCnV.cjs} +8 -8
  154. package/dist/ready-DcD0SCnV.cjs.map +1 -0
  155. package/dist/reconcile/public.cjs +1 -1
  156. package/dist/reconcile/public.mjs +1 -1
  157. package/dist/{resolve-BhQd4IkT.cjs → resolve-BKn4TTn3.cjs} +4 -4
  158. package/dist/{resolve-BhQd4IkT.cjs.map → resolve-BKn4TTn3.cjs.map} +1 -1
  159. package/dist/{resolve-CdDyPOE8.mjs → resolve-DrFS2Ivb.mjs} +4 -4
  160. package/dist/{resolve-CdDyPOE8.mjs.map → resolve-DrFS2Ivb.mjs.map} +1 -1
  161. package/dist/{rollback-Brc-_HBJ.cjs → rollback-6ZeoByXd.cjs} +7 -7
  162. package/dist/{rollback-Brc-_HBJ.cjs.map → rollback-6ZeoByXd.cjs.map} +1 -1
  163. package/dist/{rollback-CLBKeSMl.mjs → rollback-B3lHgwkj.mjs} +7 -7
  164. package/dist/{rollback-CLBKeSMl.mjs.map → rollback-B3lHgwkj.mjs.map} +1 -1
  165. package/dist/{s3-CuLmr6Q9.cjs → s3-Cq1_F2J8.cjs} +3 -3
  166. package/dist/{s3-CuLmr6Q9.cjs.map → s3-Cq1_F2J8.cjs.map} +1 -1
  167. package/dist/{s3-D0BIG_ml.mjs → s3-DfAM0soB.mjs} +3 -3
  168. package/dist/{s3-D0BIG_ml.mjs.map → s3-DfAM0soB.mjs.map} +1 -1
  169. package/dist/sandbox/credentials-worker.cjs +2 -2
  170. package/dist/sandbox/credentials-worker.mjs +2 -2
  171. package/dist/sandbox/discover-worker.cjs +1 -1
  172. package/dist/sandbox/discover-worker.mjs +1 -1
  173. package/dist/sandbox/migrate-worker.cjs +2 -2
  174. package/dist/sandbox/migrate-worker.mjs +2 -2
  175. package/dist/{serverSetup-BMpzrB1y.cjs → serverSetup-DMNKsLKq.cjs} +6 -6
  176. package/dist/{serverSetup-BMpzrB1y.cjs.map → serverSetup-DMNKsLKq.cjs.map} +1 -1
  177. package/dist/{serverSetup-An1fE9nd.mjs → serverSetup-lZ7tYUZJ.mjs} +6 -6
  178. package/dist/{serverSetup-An1fE9nd.mjs.map → serverSetup-lZ7tYUZJ.mjs.map} +1 -1
  179. package/dist/{sniffer-9a8wQeeD.cjs → sniffer-CUImZsQL.cjs} +8 -8
  180. package/dist/{sniffer-9a8wQeeD.cjs.map → sniffer-CUImZsQL.cjs.map} +1 -1
  181. package/dist/{sniffer-BObBXR5q.mjs → sniffer-DcT9RrAj.mjs} +8 -8
  182. package/dist/{sniffer-BObBXR5q.mjs.map → sniffer-DcT9RrAj.mjs.map} +1 -1
  183. package/dist/{snsSubscriptions-BRmEdsks.cjs → snsSubscriptions-1lX1ze3u.cjs} +10 -5
  184. package/dist/snsSubscriptions-1lX1ze3u.cjs.map +1 -0
  185. package/dist/{snsSubscriptions-oUTOkG-s.mjs → snsSubscriptions-DFWhEgiA.mjs} +10 -5
  186. package/dist/snsSubscriptions-DFWhEgiA.mjs.map +1 -0
  187. package/dist/{sst-DVIeKWCH.mjs → sst-CB6rX5Zs.mjs} +6 -6
  188. package/dist/{sst-DVIeKWCH.mjs.map → sst-CB6rX5Zs.mjs.map} +1 -1
  189. package/dist/{sst-CJQI9GYW.cjs → sst-ct0Vhta9.cjs} +6 -6
  190. package/dist/{sst-CJQI9GYW.cjs.map → sst-ct0Vhta9.cjs.map} +1 -1
  191. package/dist/{stack-2jMvQfLo.cjs → stack-CkdkfmpN.cjs} +124 -47
  192. package/dist/stack-CkdkfmpN.cjs.map +1 -0
  193. package/dist/{stack-kcxH-2tZ.mjs → stack-Dsl0l3fi.mjs} +120 -49
  194. package/dist/stack-Dsl0l3fi.mjs.map +1 -0
  195. package/dist/{stage-AHgVG7H8.cjs → stage-Cmn0dCV2.cjs} +7 -7
  196. package/dist/{stage-AHgVG7H8.cjs.map → stage-Cmn0dCV2.cjs.map} +1 -1
  197. package/dist/{stage-BQSSMJL4.mjs → stage-DfdUf2sj.mjs} +7 -7
  198. package/dist/{stage-BQSSMJL4.mjs.map → stage-DfdUf2sj.mjs.map} +1 -1
  199. package/dist/{stages-DpF2K3PZ.cjs → stages-BWg3NU3J.cjs} +2 -2
  200. package/dist/{stages-DpF2K3PZ.cjs.map → stages-BWg3NU3J.cjs.map} +1 -1
  201. package/dist/{stages-BsK1Ro4s.mjs → stages-COiipV8N.mjs} +2 -2
  202. package/dist/{stages-BsK1Ro4s.mjs.map → stages-COiipV8N.mjs.map} +1 -1
  203. package/dist/target/public.cjs +1 -1
  204. package/dist/target/public.mjs +1 -1
  205. package/dist/{terminal-DWROY7JE.mjs → terminal-BDKhPIBA.mjs} +3 -3
  206. package/dist/{terminal-DWROY7JE.mjs.map → terminal-BDKhPIBA.mjs.map} +1 -1
  207. package/dist/{terminal-BNjNr7BN.cjs → terminal-CFeiyJxJ.cjs} +3 -3
  208. package/dist/{terminal-BNjNr7BN.cjs.map → terminal-CFeiyJxJ.cjs.map} +1 -1
  209. package/dist/vitest.cjs +1 -1
  210. package/dist/vitest.mjs +1 -1
  211. package/dist/workspace/index.cjs +1 -1
  212. package/dist/workspace/index.mjs +1 -1
  213. package/dist/{workspace-Ciw3SnME.cjs → workspace-CEpojAus.cjs} +42 -15
  214. package/dist/workspace-CEpojAus.cjs.map +1 -0
  215. package/dist/{workspace-9q4TSHlM.mjs → workspace-_aoe8v6u.mjs} +43 -16
  216. package/dist/workspace-_aoe8v6u.mjs.map +1 -0
  217. package/package.json +15 -15
  218. package/dist/SubscriberGenerator-BybB6uez.mjs.map +0 -1
  219. package/dist/SubscriberGenerator-mZpSuSU7.cjs.map +0 -1
  220. package/dist/add-DsxJ0Knr.cjs.map +0 -1
  221. package/dist/add-Dt8QKSOw.mjs.map +0 -1
  222. package/dist/apps-C6s-trVp.cjs.map +0 -1
  223. package/dist/apps-w2sRQKCr.mjs.map +0 -1
  224. package/dist/compose-BqTuzitb.cjs.map +0 -1
  225. package/dist/compose-Csegtvq_.mjs.map +0 -1
  226. package/dist/compose-QSBmhr4V.cjs.map +0 -1
  227. package/dist/compose-RhuFQmZS.mjs.map +0 -1
  228. package/dist/credentialSchemas-BAklWDna.cjs.map +0 -1
  229. package/dist/credentialSchemas-mz9QZTYh.mjs.map +0 -1
  230. package/dist/databases-C1qqNxTu.mjs.map +0 -1
  231. package/dist/databases-CrKh5jw6.cjs.map +0 -1
  232. package/dist/deploy-BwJ7uWXd.cjs.map +0 -1
  233. package/dist/deploy-DDfnQm8l.mjs.map +0 -1
  234. package/dist/discover-CRywE7yc.cjs.map +0 -1
  235. package/dist/discover-DbDrCQ8h.mjs.map +0 -1
  236. package/dist/docker-Dy1ZJUzV.cjs.map +0 -1
  237. package/dist/docker-Ele34O8z.mjs.map +0 -1
  238. package/dist/encryption-BZ1zgtF5.cjs.map +0 -1
  239. package/dist/encryption-CHmfNBAy.mjs.map +0 -1
  240. package/dist/engine-B3Gmu8-O.mjs.map +0 -1
  241. package/dist/engine-DewbDHOq.cjs.map +0 -1
  242. package/dist/notes-9bOfe08J.mjs.map +0 -1
  243. package/dist/notes-DRdlsCYV.cjs.map +0 -1
  244. package/dist/ready-BjFMu_1J.mjs.map +0 -1
  245. package/dist/ready-eVMJIcWn.cjs.map +0 -1
  246. package/dist/snsSubscriptions-BRmEdsks.cjs.map +0 -1
  247. package/dist/snsSubscriptions-oUTOkG-s.mjs.map +0 -1
  248. package/dist/stack-2jMvQfLo.cjs.map +0 -1
  249. package/dist/stack-kcxH-2tZ.mjs.map +0 -1
  250. package/dist/workspace-9q4TSHlM.mjs.map +0 -1
  251. package/dist/workspace-Ciw3SnME.cjs.map +0 -1
@@ -1,18 +1,29 @@
1
1
  import { t as GkmError } from "./errors-D8Gwp5kU.mjs";
2
- import { Q as imageRef, a as findRootDomain, o as normalizeDnsConfig } from "./credentials-D4DUPPPP.mjs";
3
- import { B as LOGS_PORT, Dt as proxyFor, Et as certificateFor, I as otlpTelemetryEnv, It as isReservedStageKey, L as resolveStageTelemetry, ot as appKey, ut as fileServerLabel, z as telemetryEnv } from "./workspace-9q4TSHlM.mjs";
4
- import { A as originSecretKey, B as WORKER_PORT, Bt as LOCAL_TLD, D as ORIGIN_VERIFY_HEADER, Ft as scopeTelemetryEnv, Ht as hostFor, I as LOCAL_CA_BUILD_SECRET, L as PRERENDER_RUN_ARG, N as composeBuildPaths, Ot as localRolePassword, Pt as isTelemetryKey, R as PROCESSOR_PORT, Rt as telemetryOf, St as bucketPolicies, Vt as clientIpRule, Yt as stageBackups, a as networkEnv, ct as processorUnits, ht as stackBackups, it as runsServer, j as processorOriginHost, jt as planFor, 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, zt as usesTelemetry } from "./apps-w2sRQKCr.mjs";
5
- import { A as minioWebhookEnv, C as redisService, M as watchedBuckets, N as EMULATOR_ACCESS_KEY_ID, Q as logsService, R as DEFAULT_IMAGES, S as STACK_CACHE, T as stackRedis, V as portKeys, X as LOGS_SERVICE, at as resolveHost, et as stackLogs, g as postgresSuperuser, it as isMainFrontendApp, n as composeFor, nt as NoDomainForStage, p as LOCAL_RABBITMQ_USER, x as REDIS_SERVICE } from "./compose-RhuFQmZS.mjs";
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-BybB6uez.mjs";
2
+ import { Q as imageRef, a as findRootDomain, o as normalizeDnsConfig } from "./credentials-kK0X754I.mjs";
3
+ import { B as LOGS_PORT, Dt as proxyFor, Et as certificateFor, I as otlpTelemetryEnv, It as isReservedStageKey, L as resolveStageTelemetry, ot as appKey, ut as fileServerLabel, z as telemetryEnv } from "./workspace-_aoe8v6u.mjs";
4
+ import { A as originSecretKey, B as WORKER_PORT, Bt as LOCAL_TLD, D as ORIGIN_VERIFY_HEADER, Ft as scopeTelemetryEnv, Ht as hostFor, I as LOCAL_CA_BUILD_SECRET, L as PRERENDER_RUN_ARG, N as composeBuildPaths, Ot as localRolePassword, Pt as isTelemetryKey, R as PROCESSOR_PORT, Rt as telemetryOf, St as bucketPolicies, Ut as hostsFor, Vt as clientIpRule, Xt as stageBackups, a as networkEnv, ct as processorUnits, ht as stackBackups, it as runsServer, j as processorOriginHost, jt as planFor, 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, zt as usesTelemetry } from "./apps-C21-TXqR.mjs";
5
+ import { A as minioWebhookEnv, C as redisService, M as watchedBuckets, N as EMULATOR_ACCESS_KEY_ID, Q as logsService, R as DEFAULT_IMAGES, S as STACK_CACHE, T as stackRedis, V as portKeys, X as LOGS_SERVICE, at as resolveHost, et as stackLogs, g as postgresSuperuser, it as isMainFrontendApp, n as composeFor, nt as NoDomainForStage, p as LOCAL_RABBITMQ_USER, x as REDIS_SERVICE } from "./compose-rn_DWcup.mjs";
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-9bOfe08J.mjs";
9
- import { o as processorDockerfile, r as appDockerfile, s as workerDockerfile, v as validateImageRef } from "./docker-Ele34O8z.mjs";
8
+ import { _ as suppliedOnly, f as devServicesUsed, g as stageServiceDeclarations, i as stageProviderNotes, p as externalServices } from "./notes-CT1jNLDC.mjs";
9
+ import { o as processorDockerfile, r as appDockerfile, s as workerDockerfile, v as validateImageRef } from "./docker-BIuidyEB.mjs";
10
10
  import { join } from "node:path";
11
11
  import { createHash } from "node:crypto";
12
- import { CLIENT_IP_HEADER, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, WILDCARD_SUBDOMAIN, isWildcardSite, provideKey, provisionOrder } from "@geekmidas/manifest";
12
+ import { CLIENT_IP_HEADER, EDGE_TOKEN_HEADER, EDGE_TOKEN_KEY, WILDCARD_SUBDOMAIN, isWildcardSite, providedKeyFor, provisionOrder } from "@geekmidas/manifest";
13
13
  import { parse as parse$1, stringify } from "yaml";
14
14
  import bcrypt from "bcryptjs";
15
15
  //#region src/compose/routes.ts
16
+ /**
17
+ * Every host a route answers on — its own, its aliases and its redirects —
18
+ * in that order: what DNS, certificates and the edge's claims cover.
19
+ */
20
+ function routeHosts(route) {
21
+ return [
22
+ route.host,
23
+ ...route.aliases ?? [],
24
+ ...route.redirects?.hosts ?? []
25
+ ];
26
+ }
16
27
  /** A route with handlers and a check that would have to hold for each of them. */
17
28
  var EdgeRouteConflict = class extends Error {
18
29
  route;
@@ -123,9 +134,15 @@ function siteBlock(route, edgeToken, certificate) {
123
134
  `).join("")}
124
135
  handle {${proxy.replace(/\n/g, "\n ")}
125
136
  }` : proxy;
126
- return `https://${host} {${certificate}${clientIpRule(edgeToken)}
137
+ const names = [host, ...route.aliases ?? []].map((name) => `https://${name}`).join(", ");
138
+ const redirects = (route.redirects?.hosts ?? []).map((from) => `
139
+
140
+ https://${from} {${certificate}
141
+ redir ${route.redirects?.to}{uri} permanent
142
+ }`).join("");
143
+ return `${names} {${certificate}${clientIpRule(edgeToken)}
127
144
  ${checks}${body}
128
- }`;
145
+ }${redirects}`;
129
146
  }
130
147
  /** Where a route's requests go, when no handler took them. */
131
148
  function proxyBlock(route) {
@@ -667,7 +684,7 @@ function traefikDynamic(routes, options) {
667
684
  for (const handler of route.handlers ?? []) {
668
685
  const handlerName = name(route, handler.name);
669
686
  routers[handlerName] = {
670
- rule: `Host(\`${route.host}\`) && (${handler.prefixes.map((prefix) => `PathPrefix(\`${prefix}\`)`).join(" || ")})`,
687
+ rule: `${hostRule(route)} && (${handler.prefixes.map((prefix) => `PathPrefix(\`${prefix}\`)`).join(" || ")})`,
671
688
  priority: 1e4,
672
689
  entryPoints: ["websecure"],
673
690
  service: handlerName,
@@ -676,6 +693,23 @@ function traefikDynamic(routes, options) {
676
693
  };
677
694
  services[handlerName] = { loadBalancer: { servers: handler.upstreams.map((upstream) => ({ url: url(upstream) })) } };
678
695
  }
696
+ if (route.redirects?.hosts.length) {
697
+ const redirect = name(route, "redirect");
698
+ middlewares[redirect] = { redirectRegex: {
699
+ regex: "^https?://[^/]+(.*)$",
700
+ replacement: `${route.redirects.to}$\{1}`,
701
+ permanent: true
702
+ } };
703
+ route.redirects.hosts.forEach((host, index) => {
704
+ routers[name(route, `redirect-${index + 1}`)] = {
705
+ rule: `Host(\`${host}\`)`,
706
+ entryPoints: ["websecure"],
707
+ service: "noop@internal",
708
+ middlewares: [redirect],
709
+ tls: certificate()
710
+ };
711
+ });
712
+ }
679
713
  const rule = `${hostRule(route)}${paths}${header}`;
680
714
  routers[name(route)] = {
681
715
  rule,
@@ -720,22 +754,33 @@ function traefikDynamic(routes, options) {
720
754
  };
721
755
  }
722
756
  /**
723
- * The hosts a route answers, as a Traefik rule: its own, or — for a wildcard
724
- * site — exactly one label under its domain, but the ones it never takes.
725
- * One label, as a wildcard certificate covers: a stage at
757
+ * The hosts a route answers, as a Traefik rule: its own and its aliases', or
758
+ * — for a wildcard site — exactly one label under its domain, but the ones
759
+ * it never takes. One label, as a wildcard certificate covers: a stage at
726
760
  * `staging.example.com` is never reached through `example.com`'s wildcard.
761
+ *
762
+ * Several hosts are parenthesised, `(Host(a) || Host(b))`, so whatever is
763
+ * joined to the rule with `&&` — the path allowlist, a required header, the
764
+ * stack's token — holds on every one of them. One router's hosts are one
765
+ * certificate's names under ACME.
727
766
  */
728
767
  function hostRule(route) {
729
- if (!route.wildcard) return `Host(\`${route.host}\`)`;
768
+ if (!route.wildcard) {
769
+ const hosts = [route.host, ...route.aliases ?? []].map((host) => `Host(\`${host}\`)`);
770
+ return hosts.length === 1 ? hosts[0] : `(${hosts.join(" || ")})`;
771
+ }
730
772
  const { domain, except } = route.wildcard;
731
773
  return [`HostRegexp(\`${`^[a-z0-9-]+\\.${domain.replace(/\./g, "\\.")}$`}\`)`, ...except.map((label) => `!Host(\`${label}.${domain}\`)`)].join(" && ");
732
774
  }
733
- /** What a stack's routes claim on the edge, from the route model. */
775
+ /**
776
+ * What a stack's routes claim on the edge, from the route model: one claim
777
+ * per host, each route's aliases and redirects included.
778
+ */
734
779
  function edgeClaims(routes) {
735
- return routes.map((route) => route.wildcard ? {
780
+ return routes.flatMap((route) => route.wildcard ? [{
736
781
  wildcard: route.wildcard.domain.toLowerCase(),
737
782
  except: [...route.wildcard.except]
738
- } : { host: route.host.toLowerCase() });
783
+ }] : routeHosts(route).map((host) => ({ host: host.toLowerCase() })));
739
784
  }
740
785
  /**
741
786
  * The comment line a stack's file carries its claims on: a comment, because
@@ -1078,7 +1123,7 @@ var StageSecretMissing = class extends GkmError {
1078
1123
  * @throws {StageSecretMissing} when the provider has not written the key.
1079
1124
  */
1080
1125
  function deployedInboxValue(inbox, key, sources) {
1081
- if (key === provideKey(inbox, "domain")) {
1126
+ if (key === providedKeyFor(inbox, "inbox", "domain")) {
1082
1127
  if (!sources.domain) throw new NoDomainForStage(sources.stage);
1083
1128
  return sources.domain;
1084
1129
  }
@@ -1095,7 +1140,7 @@ function deployedInboxEnv(manifest, sources) {
1095
1140
  const env = {};
1096
1141
  for (const declaration of Object.values(manifest)) {
1097
1142
  if (declaration.kind !== "inbox") continue;
1098
- const keys = [...declaration.provides ?? [], provideKey(declaration.topic, "publisherConnectionString")];
1143
+ const keys = [...declaration.provides ?? [], providedKeyFor(declaration.topic, "topic", "publisherConnectionString")];
1099
1144
  for (const key of keys) env[key] = deployedInboxValue(declaration.id, key, sources);
1100
1145
  }
1101
1146
  return env;
@@ -1226,12 +1271,12 @@ function composeStack(input) {
1226
1271
  for (const resource of plan.resources) {
1227
1272
  owners.set(resource.envKey, resource);
1228
1273
  if (resource.kind === "email") {
1229
- owners.set(provideKey(resource.id, "from"), resource);
1230
- owners.set(provideKey(resource.id, "inboxUrl"), resource);
1274
+ owners.set(providedKeyFor(resource.id, resource.kind, "from"), resource);
1275
+ owners.set(providedKeyFor(resource.id, resource.kind, "inboxUrl"), resource);
1231
1276
  }
1232
- if (resource.kind === "external-api") owners.set(provideKey(resource.id, "credentials"), resource);
1233
- if (resource.kind === "inbox") owners.set(provideKey(resource.id, "domain"), resource);
1234
- if (resource.kind === "websocket-api") owners.set(provideKey(resource.id, "publisherConnectionString"), resource);
1277
+ if (resource.kind === "external-api") owners.set(providedKeyFor(resource.id, resource.kind, "credentials"), resource);
1278
+ if (resource.kind === "inbox") owners.set(providedKeyFor(resource.id, resource.kind, "domain"), resource);
1279
+ if (resource.kind === "websocket-api") owners.set(providedKeyFor(resource.id, resource.kind, "publisherConnectionString"), resource);
1235
1280
  }
1236
1281
  const domain = workspace.domains?.[stage];
1237
1282
  const telemetry = resolveStageTelemetry({
@@ -1304,8 +1349,8 @@ function composeStack(input) {
1304
1349
  const bucketEventKeys = /* @__PURE__ */ new Map();
1305
1350
  for (const resource of plan.resources) {
1306
1351
  if (resource.kind !== "objects") continue;
1307
- bucketEventKeys.set(provideKey(resource.id, "eventsConnectionString"), resource.id);
1308
- bucketEventKeys.set(provideKey(resource.id, "eventsToken"), resource.id);
1352
+ bucketEventKeys.set(providedKeyFor(resource.id, resource.kind, "eventsConnectionString"), resource.id);
1353
+ bucketEventKeys.set(providedKeyFor(resource.id, resource.kind, "eventsToken"), resource.id);
1309
1354
  }
1310
1355
  const fileServers = /* @__PURE__ */ new Map();
1311
1356
  if (storage) for (const resource of plan.resources) {
@@ -1352,13 +1397,15 @@ function composeStack(input) {
1352
1397
  project: workspace.name,
1353
1398
  credentials: credential.containers,
1354
1399
  seed: credential.seed,
1355
- ...!local && domain ? { mailFrom: `noreply@${domain}` } : {},
1400
+ ...!local && domain ? { mailDomain: domain } : {},
1356
1401
  relayedBuckets: [...watchedBuckets(manifest, input.subscribers ?? {}).keys()].filter((bucket) => services.minio.includes(bucket))
1357
1402
  };
1358
1403
  const publicAddresses = Object.fromEntries(apps.map((app) => [app.id, app.url]));
1404
+ const aliasAddresses = Object.fromEntries(apps.map((app) => [app.id, (app.aliases ?? []).map((alias) => `https://${alias}${local && https !== 443 ? `:${https}` : ""}`)]));
1359
1405
  const outside = networkEnv(plan, {
1360
1406
  ...derivation,
1361
- addresses: publicAddresses
1407
+ addresses: publicAddresses,
1408
+ aliasAddresses
1362
1409
  }, hostOf);
1363
1410
  /**
1364
1411
  * What a key resolves to for one app, from the stage's secrets where only
@@ -1393,7 +1440,7 @@ function composeStack(input) {
1393
1440
  }
1394
1441
  if (custom[key] !== void 0) return custom[key];
1395
1442
  if (owner?.kind === "cache") return redis?.urls[key];
1396
- if (owner?.kind === "websocket-api" && key === provideKey(owner.id, "publisherConnectionString")) return redis?.urls[key];
1443
+ if (owner?.kind === "websocket-api" && key === providedKeyFor(owner.id, owner.kind, "publisherConnectionString")) return redis?.urls[key];
1397
1444
  return outside[key];
1398
1445
  };
1399
1446
  const telemetryValues = logs ? telemetryEnv({
@@ -1530,8 +1577,8 @@ function composeStack(input) {
1530
1577
  for (const [bucket, workerId] of watched) {
1531
1578
  if (!services.minio.includes(bucket)) continue;
1532
1579
  const worker = workers.find((w) => w.id === workerId);
1533
- const relay = worker?.env?.[provideKey(bucket, "eventsConnectionString")];
1534
- const token = worker?.env?.[provideKey(bucket, "eventsToken")];
1580
+ const relay = worker?.env?.[providedKeyFor(bucket, "objects", "eventsConnectionString")];
1581
+ const token = worker?.env?.[providedKeyFor(bucket, "objects", "eventsToken")];
1535
1582
  if (!worker || !relay || relay.startsWith("sns:") || !token) continue;
1536
1583
  storage.webhooks.push({
1537
1584
  bucket,
@@ -1587,6 +1634,11 @@ function composeStack(input) {
1587
1634
  ...apps.map((app) => ({
1588
1635
  name: app.name,
1589
1636
  host: app.host,
1637
+ ...app.aliases?.length ? { aliases: app.aliases } : {},
1638
+ ...app.redirects?.length ? { redirects: {
1639
+ hosts: app.redirects,
1640
+ to: app.url
1641
+ } } : {},
1590
1642
  ...wildcard?.site === app.id ? { wildcard: wildcard.edge } : {},
1591
1643
  upstreams: replicaNames(app).map((service) => ({
1592
1644
  service,
@@ -1639,7 +1691,7 @@ function composeStack(input) {
1639
1691
  }] : []
1640
1692
  ];
1641
1693
  if (mailInbox) {
1642
- const taken = routes.find((route) => route.host === mailInbox.host);
1694
+ const taken = routes.find((route) => routeHosts(route).includes(mailInbox.host));
1643
1695
  if (taken) throw new MailInboxHostTaken(mailInbox.host, taken.name);
1644
1696
  routes.push({
1645
1697
  name: "mailpit",
@@ -1786,7 +1838,7 @@ function stackApps(workspace, manifest, plan, options) {
1786
1838
  const app = workspace.apps[name];
1787
1839
  const resource = resources.get(id);
1788
1840
  if (!app || !resource || !app.port) continue;
1789
- const host = hostOf(name, app, workspace, resource, options);
1841
+ const { host, aliases, redirects } = appHosts(name, app, workspace, resource, options);
1790
1842
  const site = declaration.kind === "site";
1791
1843
  const tag = site ? siteTag(options.images.tag, options.stage) : options.images.tag;
1792
1844
  const ref = validateImageRef(imageRef(options.identity, name, options.images.registry, tag));
@@ -1802,6 +1854,8 @@ function stackApps(workspace, manifest, plan, options) {
1802
1854
  path: app.path,
1803
1855
  port: app.port,
1804
1856
  host,
1857
+ ...aliases.length ? { aliases } : {},
1858
+ ...redirects.length ? { redirects } : {},
1805
1859
  url: `${declaration.kind === "websocket-api" ? "wss" : "https"}://${host}${options.local && options.https !== 443 ? `:${options.https}` : ""}`,
1806
1860
  ref,
1807
1861
  tag,
@@ -1965,13 +2019,16 @@ var EdgeHostTaken = class extends GkmError {
1965
2019
  this.name = "EdgeHostTaken";
1966
2020
  }
1967
2021
  };
1968
- /** Refuse a stack where one host would be routed to two services. */
2022
+ /**
2023
+ * Refuse a stack where one host would be routed to two services — every
2024
+ * host of every route, its aliases and redirects included.
2025
+ */
1969
2026
  function assertHostsUnique(routes) {
1970
2027
  const claimed = /* @__PURE__ */ new Map();
1971
- for (const { host, name } of routes) {
2028
+ for (const route of routes) for (const host of routeHosts(route)) {
1972
2029
  const first = claimed.get(host);
1973
- if (first !== void 0) throw new EdgeHostTaken(host, first, name);
1974
- claimed.set(host, name);
2030
+ if (first !== void 0 && first !== route.name) throw new EdgeHostTaken(host, first, route.name);
2031
+ claimed.set(host, route.name);
1975
2032
  }
1976
2033
  }
1977
2034
  /** Each processor unit's image, and where it is built from. */
@@ -2006,18 +2063,32 @@ function stackWorkers(units, options) {
2006
2063
  }));
2007
2064
  }
2008
2065
  /**
2009
- * The host an app answers on for a stage: the `gkm dev` edge's
2010
- * `*.localhost` names for the local stage, and the stage's domain — by the
2011
- * same rule a deploy follows — for any other.
2066
+ * The hosts an app answers on for a stage: the `gkm dev` edge's
2067
+ * `*.localhost` names for the local stage (`hostsFor`), and the stage's
2068
+ * domain — by the same rule a deploy follows — for any other. Its aliases
2069
+ * and redirects are labels under the stage's domain, as its own is.
2012
2070
  */
2013
- function hostOf(name, app, workspace, resource, options) {
2014
- if (options.local) return hostFor(resource, workspace.name);
2071
+ function appHosts(name, app, workspace, resource, options) {
2072
+ if (options.local) return hostsFor(resource, workspace.name);
2073
+ const domain = workspace.domains?.[options.stage];
2015
2074
  if (resource.subdomain === WILDCARD_SUBDOMAIN) {
2016
- const domain = workspace.domains?.[options.stage];
2017
2075
  if (!domain) throw new NoDomainForStage(options.stage);
2018
- return `${WILDCARD_SUBDOMAIN}.${domain}`;
2076
+ return {
2077
+ host: `${WILDCARD_SUBDOMAIN}.${domain}`,
2078
+ aliases: [],
2079
+ redirects: []
2080
+ };
2019
2081
  }
2020
- return resolveHost(name, app, options.stage, workspace.domains, isMainFrontendApp(name, app, workspace.apps));
2082
+ const host = resolveHost(name, app, options.stage, workspace.domains, isMainFrontendApp(name, app, workspace.apps));
2083
+ const under = (label) => {
2084
+ if (!domain) throw new NoDomainForStage(options.stage);
2085
+ return `${label}.${domain}`;
2086
+ };
2087
+ return {
2088
+ host,
2089
+ aliases: (resource.aliases ?? []).map(under),
2090
+ redirects: (resource.redirects ?? []).map(under)
2091
+ };
2021
2092
  }
2022
2093
  /** An app's compose services, one per replica: `api`, `api-2`, `api-3`. */
2023
2094
  function replicaNames(app) {
@@ -2030,7 +2101,7 @@ const LOCAL_CA_IN_CONTAINER = "/etc/gkm/local-ca.pem";
2030
2101
  * route's but a wildcard's, which no host entry can name.
2031
2102
  */
2032
2103
  function stackPublicHosts(routes) {
2033
- return [...new Set(routes.map((route) => route.host))].filter((host) => !host.startsWith("*.")).sort();
2104
+ return [...new Set(routes.flatMap(routeHosts))].filter((host) => !host.startsWith("*.")).sort();
2034
2105
  }
2035
2106
  /**
2036
2107
  * What a local stack's container needs to call the stage's own public hosts —
@@ -2250,6 +2321,6 @@ function envFile(env) {
2250
2321
  return `${Object.entries(env).sort(([a], [b]) => a.localeCompare(b)).map(([key, value]) => `${key}=${value}`).join("\n")}\n`;
2251
2322
  }
2252
2323
  //#endregion
2253
- export { traefikStaticFile as C, parseDigests as D, assertImagesExist as E, pinImages as O, readEdgeClaims as S, RegistryRequired as T, EDGE_NETWORK as _, composeProject as a, claimsOverlap as b, derivedCredentials as c, stackDir as d, stackPlan as f, EDGE_DYNAMIC_DIR as g, EDGE_CERTS_DIR as h, LOOPBACK_SERVICES as i, pinnedRef as k, envFile as l, EDGE_AWS_CREDENTIALS 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_PROJECT as v, assertSitePasswords as w, edgeComposeFile as x, EDGE_SERVICE as y };
2324
+ export { routeHosts as A, traefikStaticFile as C, parseDigests as D, assertImagesExist as E, pinImages as O, readEdgeClaims as S, RegistryRequired as T, EDGE_NETWORK as _, composeProject as a, claimsOverlap as b, derivedCredentials as c, stackDir as d, stackPlan as f, EDGE_DYNAMIC_DIR as g, EDGE_CERTS_DIR as h, LOOPBACK_SERVICES as i, pinnedRef as k, envFile as l, EDGE_AWS_CREDENTIALS 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_PROJECT as v, assertSitePasswords as w, edgeComposeFile as x, EDGE_SERVICE as y };
2254
2325
 
2255
- //# sourceMappingURL=stack-kcxH-2tZ.mjs.map
2326
+ //# sourceMappingURL=stack-Dsl0l3fi.mjs.map