2 Commits

  • refactor(data): strict dev/production stages and data naming
    - services/data/stage.ts: stage(mode) throws on anything but dev or production, used by all three configs, build.ts and deploy.ts
    - packages/stats -> packages/data (@opencode/data-app, -core, -server)
    - StatsSyncWorkflow -> DataSyncWorkflow, instance ids data-hourly-/data-history-, Data* resource keys, data sync log lines
    - worker, route, workflow and cron names unchanged
  • chore: move the data site off sst
    the stats site, its og worker and the sync workflow deploy from services/data with cf as
    opencode-data-<stage>, opencode-data-og-<stage> and opencode-data-sync-<stage>. the beta
    web app and the whole sst setup (sst.config.ts, infra/, sst-env.d.ts, the sst dependency)
    are gone, so nothing deploys through sst anymore (security finding #920).