diff options
| author | Frank <[email protected]> | 2025-09-02 20:01:11 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-02 20:01:13 -0400 |
| commit | 4e629c5b64d52f6633e5e1a54d250b4b57c92604 (patch) | |
| tree | a786a64484e161b4d2f0ac25a97bb3fa874cb861 /infra | |
| parent | 4624f0a260c36d55756b6f53641daacb878f9d92 (diff) | |
| download | opencode-4e629c5b64d52f6633e5e1a54d250b4b57c92604.tar.gz opencode-4e629c5b64d52f6633e5e1a54d250b4b57c92604.zip | |
wip: cloud
Diffstat (limited to 'infra')
| -rw-r--r-- | infra/cloud.ts | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/infra/cloud.ts b/infra/cloud.ts index 9dbfcd2cc..b628cde72 100644 --- a/infra/cloud.ts +++ b/infra/cloud.ts @@ -102,8 +102,8 @@ export const stripeWebhook = new WebhookEndpoint("StripeWebhook", { }) const ANTHROPIC_API_KEY = new sst.Secret("ANTHROPIC_API_KEY") -const OPENAI_API_KEY = new sst.Secret("OPENAI_API_KEY") -const ZHIPU_API_KEY = new sst.Secret("ZHIPU_API_KEY") +const XAI_API_KEY = new sst.Secret("XAI_API_KEY") +const BASETEN_API_KEY = new sst.Secret("BASETEN_API_KEY") const STRIPE_SECRET_KEY = new sst.Secret("STRIPE_SECRET_KEY") const AUTH_API_URL = new sst.Linkable("AUTH_API_URL", { properties: { value: auth.url.apply((url) => url!) }, @@ -111,20 +111,6 @@ const AUTH_API_URL = new sst.Linkable("AUTH_API_URL", { const STRIPE_WEBHOOK_SECRET = new sst.Linkable("STRIPE_WEBHOOK_SECRET", { properties: { value: stripeWebhook.secret }, }) -export const gateway = new sst.cloudflare.Worker("GatewayApi", { - domain: `api.gateway.${domain}`, - handler: "cloud/function/src/gateway.ts", - url: true, - link: [ - database, - AUTH_API_URL, - STRIPE_WEBHOOK_SECRET, - STRIPE_SECRET_KEY, - ANTHROPIC_API_KEY, - OPENAI_API_KEY, - ZHIPU_API_KEY, - ], -}) //////////////// // CONSOLE @@ -139,8 +125,8 @@ new sst.cloudflare.x.SolidStart("Console", { STRIPE_WEBHOOK_SECRET, STRIPE_SECRET_KEY, ANTHROPIC_API_KEY, - OPENAI_API_KEY, - ZHIPU_API_KEY, + XAI_API_KEY, + BASETEN_API_KEY, ], environment: { //VITE_DOCS_URL: web.url.apply((url) => url!), |
