diff options
| author | Dax Raad <[email protected]> | 2025-08-20 16:52:43 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-20 17:01:18 -0400 |
| commit | 522bed6b7dabd09328b3c8aae90b06ab06344623 (patch) | |
| tree | 905dca3e2b3fb4e765d03f2ec78e285f19a31155 /infra/cloud.ts | |
| parent | dda672284c69ad399029316a63677cf49cbc54f3 (diff) | |
| download | opencode-522bed6b7dabd09328b3c8aae90b06ab06344623.tar.gz opencode-522bed6b7dabd09328b3c8aae90b06ab06344623.zip | |
ignore: cloud stuff
Diffstat (limited to 'infra/cloud.ts')
| -rw-r--r-- | infra/cloud.ts | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/infra/cloud.ts b/infra/cloud.ts index 37fe35a0d..d1ffb51e0 100644 --- a/infra/cloud.ts +++ b/infra/cloud.ts @@ -10,7 +10,7 @@ const DATABASE_USERNAME = new sst.Secret("DATABASE_USERNAME") const DATABASE_PASSWORD = new sst.Secret("DATABASE_PASSWORD") export const database = new sst.Linkable("Database", { properties: { - host: "aws-us-east-2-1.pg.psdb.cloud", + host: `aws-us-east-2-${$app.stage === "thdxr" ? "2" : "1"}.pg.psdb.cloud`, database: "postgres", username: DATABASE_USERNAME.value, password: DATABASE_PASSWORD.value, @@ -106,6 +106,7 @@ export const gateway = new sst.cloudflare.Worker("GatewayApi", { // CONSOLE //////////////// +/* export const console = new sst.cloudflare.x.StaticSite("Console", { domain: `console.${domain}`, path: "cloud/web", @@ -119,3 +120,15 @@ export const console = new sst.cloudflare.x.StaticSite("Console", { VITE_AUTH_URL: auth.url.apply((url) => url!), }, }) +*/ + +new sst.x.DevCommand("Solid", { + link: [database], + dev: { + directory: "cloud/app", + command: "bun dev", + }, + environment: { + VITE_AUTH_URL: auth.url.apply((url) => url!), + }, +}) |
