diff options
Diffstat (limited to 'infra/cloud.ts')
| -rw-r--r-- | infra/cloud.ts | 35 |
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!), +// }, +//}) |
