diff options
| author | Frank <[email protected]> | 2025-11-08 10:15:35 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-11-08 10:18:21 -0500 |
| commit | 30b1ae5d4b071f5637c1a590a177b5017a28c90b (patch) | |
| tree | af56c9b48a7fa59baab65fa7d1a26dfc8ea1cf79 /infra/console.ts | |
| parent | 9cd465f9c0702ebedf29b3386c555d9bc4da8306 (diff) | |
| download | opencode-30b1ae5d4b071f5637c1a590a177b5017a28c90b.tar.gz opencode-30b1ae5d4b071f5637c1a590a177b5017a28c90b.zip | |
zen: rate limit
Diffstat (limited to 'infra/console.ts')
| -rw-r--r-- | infra/console.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/infra/console.ts b/infra/console.ts index 98cc4c3f0..fabc86587 100644 --- a/infra/console.ts +++ b/infra/console.ts @@ -106,6 +106,7 @@ const AUTH_API_URL = new sst.Linkable("AUTH_API_URL", { const STRIPE_WEBHOOK_SECRET = new sst.Linkable("STRIPE_WEBHOOK_SECRET", { properties: { value: stripeWebhook.secret }, }) +const gatewayKv = new sst.cloudflare.Kv("GatewayKv") //////////////// // CONSOLE @@ -136,6 +137,16 @@ new sst.cloudflare.x.SolidStart("Console", { EMAILOCTOPUS_API_KEY, AWS_SES_ACCESS_KEY_ID, AWS_SES_SECRET_ACCESS_KEY, + ...($dev + ? [ + new sst.Secret( + "CLOUDFLARE_DEFAULT_ACCOUNT_ID", + process.env.CLOUDFLARE_DEFAULT_ACCOUNT_ID!, + ), + new sst.Secret("CLOUDFLARE_API_TOKEN", process.env.CLOUDFLARE_API_TOKEN!), + ] + : []), + gatewayKv, ], environment: { //VITE_DOCS_URL: web.url.apply((url) => url!), |
