opencode/services/data/og.config.ts
Dax 33123b1c42
Some checks are pending
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Waiting to run
bot-nix-hashes / hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Waiting to run
bot-nix-hashes / hash (macos-latest, aarch64-darwin) (push) Waiting to run
bot-nix-hashes / compute (push) Blocked by required conditions
bot-nix-hashes / publish (push) Blocked by required conditions
check-nix / nix-eval (push) Waiting to run
Process daemon / Miri (callback ownership) (push) Waiting to run
Process daemon / Core (macos-15) (push) Waiting to run
Process daemon / Core (ubuntu-22.04) (push) Waiting to run
Process daemon / Windows (arm64) (push) Waiting to run
Process daemon / Windows (x64) (push) Waiting to run
check / typecheck (push) Waiting to run
deploy-files / files-build (push) Waiting to run
deploy-files / files-deploy (push) Blocked by required conditions
deploy-site / site-build (push) Waiting to run
deploy-site / site-deploy (push) Blocked by required conditions
deploy / legacy-build (push) Waiting to run
deploy / legacy-deploy (push) Blocked by required conditions
deploy / data-build (push) Waiting to run
deploy / data-deploy (push) Blocked by required conditions
ci: deploy dev workers in anomaly-dev (#63379)
2026-11-11 16:17:46 -05:00

19 lines
774 B
TypeScript

import { defineConfig } from "cf/config"
import { stage, stageAccount } from "./stage"
export const ogWorkerName = (mode: string | undefined) => `opencode-data-og-${stage(mode)}`
// The private Worker that renders the data pages' Open Graph images (packages/data/app/src/og/worker.ts). It has no
// URL or route; the data Worker reaches it through its OG_WORKER Service Binding. It is its own Worker so the data
// Worker doesn't load the Wasm engines and fonts it ships as modules (script/build.ts).
export default defineConfig(({ mode }) => ({
// Anomaly
accountId: stageAccount(stage(mode)),
worker: {
name: ogWorkerName(mode),
compatibilityDate: "2026-07-01",
workersDev: false,
previewUrls: false,
observability: { enabled: true },
},
}))