GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — opencode/services/data/README.md at dev · dshaw/opencode

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
29 lines (23 loc) · 1.9 KB
/

README.md

Copy path

File metadata and controls

29 lines (23 loc) · 1.9 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

Data

Deploys the opencode.ai/data site from packages/data as three Workers with cf:

Worker Config What it is
opencode-data-<stage> cloudflare.config.ts The SolidStart site, on /data* and /<locale>/data* of the stage's host
opencode-data-og-<stage> og.config.ts Open Graph images, reached only through the site's OG_WORKER binding
opencode-data-sync-<stage> sync.config.ts The opencode-data-sync-<stage> Workflow and the cron handler that starts it

script/build.ts builds all three into one Build Output tree and script/deploy.ts deploys them with cf deploy --prebuilt, the OG Worker first. The data job in .github/workflows/deploy.yml runs deploy:dev or deploy:production and passes the Worker secrets from AWS Secrets Manager (opencode/<stage>/DATA_DATABASE_HOST, DATA_DATABASE_USERNAME, DATA_DATABASE_PASSWORD, R2_SQL_AUTH_TOKEN, DATA_HIDDEN_MODELS) with --secrets-file. Each Worker gets only the secrets its config declares.

The database is the opencode-stats PlanetScale database: the dev branch for dev and production for production, through the data-worker-<stage> password. It is not managed as code.

Every config, script/build.ts and script/deploy.ts take the stage from --mode, which must be dev or production (stage.ts). Anything else, including no mode, throws instead of falling back to production, so pass --mode to cf commands that read the configs too (cf deploy --dry-run --mode dev).

bun run dev               # the site on your machine (packages/data/app)
bun run build:dev         # or build:production
bun run typecheck
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.