diff options
| author | Frank <[email protected]> | 2025-10-20 16:17:49 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-10-20 16:17:51 -0400 |
| commit | 075ef0fa34a6b5a423c1a1adc2eb546fab3f5212 (patch) | |
| tree | e7c6c81c263ed1bdf948081ef3eb55662a4ac624 /infra/app.ts | |
| parent | 89b72e4442e4a4ce9379d95c96bd5ff29bb7ac6b (diff) | |
| download | opencode-075ef0fa34a6b5a423c1a1adc2eb546fab3f5212.tar.gz opencode-075ef0fa34a6b5a423c1a1adc2eb546fab3f5212.zip | |
wip: share
Diffstat (limited to 'infra/app.ts')
| -rw-r--r-- | infra/app.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/infra/app.ts b/infra/app.ts index 151879208..7215995ba 100644 --- a/infra/app.ts +++ b/infra/app.ts @@ -3,6 +3,7 @@ import { domain } from "./stage" const GITHUB_APP_ID = new sst.Secret("GITHUB_APP_ID") const GITHUB_APP_PRIVATE_KEY = new sst.Secret("GITHUB_APP_PRIVATE_KEY") export const EMAILOCTOPUS_API_KEY = new sst.Secret("EMAILOCTOPUS_API_KEY") +const ADMIN_SECRET = new sst.Secret("ADMIN_SECRET") const bucket = new sst.cloudflare.Bucket("Bucket") export const api = new sst.cloudflare.Worker("Api", { @@ -12,7 +13,7 @@ export const api = new sst.cloudflare.Worker("Api", { WEB_DOMAIN: domain, }, url: true, - link: [bucket, GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY], + link: [bucket, GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, ADMIN_SECRET], transform: { worker: (args) => { args.logpush = true |
