@geekmidas/cli 0.44.0 → 0.45.0

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/index.mjs CHANGED
@@ -28,7 +28,7 @@ import prompts from "prompts";
28
28
 
29
29
  //#region package.json
30
30
  var name = "@geekmidas/cli";
31
- var version = "0.44.0";
31
+ var version = "0.45.0";
32
32
  var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
33
33
  var private$1 = false;
34
34
  var type = "module";
@@ -4696,7 +4696,11 @@ async function workspaceDeployCommand(workspace, options) {
4696
4696
  };
4697
4697
  if (dockerServices.postgres || dockerServices.redis) {
4698
4698
  logger$1.log("\nšŸ”§ Provisioning infrastructure services...");
4699
- await provisionServices(api, project.projectId, environmentId, workspace.name, dockerServices);
4699
+ const existingUrls = stageSecrets ? {
4700
+ DATABASE_URL: stageSecrets.urls?.DATABASE_URL,
4701
+ REDIS_URL: stageSecrets.urls?.REDIS_URL
4702
+ } : void 0;
4703
+ await provisionServices(api, project.projectId, environmentId, workspace.name, dockerServices, existingUrls);
4700
4704
  }
4701
4705
  const backendApps = appsToDeployNames.filter((name$1) => workspace.apps[name$1].type === "backend");
4702
4706
  const frontendApps = appsToDeployNames.filter((name$1) => workspace.apps[name$1].type === "frontend");