You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(dev): auto-seed conformity stats fixture on dev / alpha / local
Wire the `seed-conformite-stats.mjs` script into the app startup path
so /admin/stats/conformite has data to browse out of the box on every
environment where it is useful:
- `entrypoint.sh` runs the seed after Drizzle migrations when
`EGAPRO_AUTO_SEED_CONFORMITE=true`. Failure is non-fatal — the app
still boots; we just log a warning.
- `Dockerfile` copies the seed script next to the other runtime
scripts (migrate, audit-cleanup) so it's available to the runner
image.
- `.kontinuous/env/dev/values.yaml` turns the flag on. This covers
review apps (including the alpha branch) but leaves preprod and prod
untouched — they keep running on real data.
- Locally, `pnpm dev` chains the seed before `next dev` (idempotent
upserts + `|| true` fallback so a missing DB never blocks the dev
server).
Also fixes a leftover bug in the seed script where `CAMPAIGN_YEARS_BACK`
was referenced but not defined — restores the 4-year window.
0 commit comments