summaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-08-20 16:52:43 -0400
committerDax Raad <[email protected]>2025-08-20 17:01:18 -0400
commit522bed6b7dabd09328b3c8aae90b06ab06344623 (patch)
tree905dca3e2b3fb4e765d03f2ec78e285f19a31155 /infra
parentdda672284c69ad399029316a63677cf49cbc54f3 (diff)
downloadopencode-522bed6b7dabd09328b3c8aae90b06ab06344623.tar.gz
opencode-522bed6b7dabd09328b3c8aae90b06ab06344623.zip
ignore: cloud stuff
Diffstat (limited to 'infra')
-rw-r--r--infra/app.ts6
-rw-r--r--infra/cloud.ts15
2 files changed, 17 insertions, 4 deletions
diff --git a/infra/app.ts b/infra/app.ts
index 008c1245d..190ddbcf4 100644
--- a/infra/app.ts
+++ b/infra/app.ts
@@ -25,9 +25,9 @@ export const api = new sst.cloudflare.Worker("Api", {
])
args.migrations = {
// Note: when releasing the next tag, make sure all stages use tag v2
- oldTag: $app.stage === "production" ? "" : "v1",
- newTag: $app.stage === "production" ? "" : "v1",
- //newSqliteClasses: ["SyncServer"],
+ // oldTag: $app.stage === "production" ? "" : "v1",
+ // newTag: $app.stage === "production" ? "" : "v1",
+ newSqliteClasses: ["SyncServer"],
}
},
},
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!),
+ },
+})