summaryrefslogtreecommitdiffhomepage
path: root/infra/cloud.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-08-29 19:34:56 -0400
committerFrank <[email protected]>2025-08-29 19:34:58 -0400
commitc3a25eff78635725472096fe2626021ee50f36b0 (patch)
treeadecb00a9340d2baea27b3f30f254054810d9490 /infra/cloud.ts
parentb40c02e2583c6e35f97849e98f66609e67dac322 (diff)
downloadopencode-c3a25eff78635725472096fe2626021ee50f36b0.tar.gz
opencode-c3a25eff78635725472096fe2626021ee50f36b0.zip
wip: cloud
Diffstat (limited to 'infra/cloud.ts')
-rw-r--r--infra/cloud.ts35
1 files changed, 14 insertions, 21 deletions
diff --git a/infra/cloud.ts b/infra/cloud.ts
index 13fb27683..542aef96d 100644
--- a/infra/cloud.ts
+++ b/infra/cloud.ts
@@ -1,6 +1,5 @@
import { WebhookEndpoint } from "pulumi-stripe"
import { domain } from "./stage"
-import { web } from "./app"
////////////////
// DATABASE
@@ -106,23 +105,9 @@ export const gateway = new sst.cloudflare.Worker("GatewayApi", {
// CONSOLE
////////////////
-/*
-export const console = new sst.cloudflare.x.StaticSite("Console", {
+export const console = new sst.cloudflare.x.SolidStart("Console", {
domain: `console.${domain}`,
- path: "cloud/web",
- build: {
- command: "bun run build",
- output: "dist/client",
- },
- environment: {
- VITE_DOCS_URL: web.url.apply((url) => url!),
- VITE_API_URL: gateway.url.apply((url) => url!),
- VITE_AUTH_URL: auth.url.apply((url) => url!),
- },
-})
-*/
-
-new sst.x.DevCommand("Solid", {
+ path: "cloud/app",
link: [
database,
AUTH_API_URL,
@@ -132,11 +117,19 @@ new sst.x.DevCommand("Solid", {
OPENAI_API_KEY,
ZHIPU_API_KEY,
],
- dev: {
- directory: "cloud/app",
- command: "bun dev",
- },
environment: {
+ //VITE_DOCS_URL: web.url.apply((url) => url!),
+ //VITE_API_URL: gateway.url.apply((url) => url!),
VITE_AUTH_URL: auth.url.apply((url) => url!),
},
})
+
+//new sst.x.DevCommand("Solid", {
+// dev: {
+// directory: "cloud/app",
+// command: "bun dev",
+// },
+// environment: {
+// VITE_AUTH_URL: auth.url.apply((url) => url!),
+// },
+//})