GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/infra/app.ts at dev · dmouse/opencode Expand file tree/ Copy pathapp.tsMore file actions 69 lines (65 loc) · 2.02 KB / Copy pathapp.tsFile metadata and controls69 lines (65 loc) · 2.02 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 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 DISCORD_SUPPORT_BOT_TOKEN = new sst.Secret("DISCORD_SUPPORT_BOT_TOKEN") const DISCORD_SUPPORT_CHANNEL_ID = new sst.Secret("DISCORD_SUPPORT_CHANNEL_ID") const FEISHU_APP_ID = new sst.Secret("FEISHU_APP_ID") const FEISHU_APP_SECRET = new sst.Secret("FEISHU_APP_SECRET") const bucket = new sst.cloudflare.Bucket("Bucket") export const api = new sst.cloudflare.Worker("Api", { domain: `api.${domain}`, handler: "packages/function/src/api.ts", environment: { WEB_DOMAIN: domain, }, url: true, link: [ bucket, GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, ADMIN_SECRET, DISCORD_SUPPORT_BOT_TOKEN, DISCORD_SUPPORT_CHANNEL_ID, FEISHU_APP_ID, FEISHU_APP_SECRET, ], transform: { worker: (args) => { args.logpush = true if ($app.stage === "vimtor" || $app.stage === "adam") return args.bindings = $resolve(args.bindings).apply((bindings) => [ ...bindings, { name: "SYNC_SERVER", type: "durable_object_namespace", className: "SyncServer", }, ]) args.migrations = { // Note: when releasing the next tag, make sure all stages use tag v2 oldTag: $app.stage === "production" || $app.stage === "thdxr" ? "" : "v1", newTag: $app.stage === "production" || $app.stage === "thdxr" ? "" : "v1", //newSqliteClasses: ["SyncServer"], } }, }, }) new sst.cloudflare.x.Astro("Web", { domain: "docs." + domain, path: "packages/web", environment: { // For astro config SST_STAGE: $app.stage, VITE_API_URL: api.url.apply((url) => url!), }, }) new sst.cloudflare.StaticSite("WebApp", { domain: "app." + domain, path: "packages/app", build: { command: "bun turbo build", output: "./dist", }, }) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |