Commands and checks
Running
Section titled “Running”npx supabase start # local stack (ports in supabase/config.toml)npx astro dev --background # http://localhost:4321Content and users
Section titled “Content and users”npm run seed # starter templates, home page, sample event (skips what exists)npx tsx --env-file=.env scripts/create-editor.ts you@example.org 'password' [editor|admin]npx tsx --env-file=.env scripts/migrate-content.ts [--dry-run] # site then core content migrationsnpx tsx --env-file=.env scripts/media-formats.ts # backfill AVIF/WebP for existing medianpx tsx --env-file=.env scripts/copy-storage.ts # local storage to a hosted projectDatabase
Section titled “Database”npx supabase db push --linked # apply migrations to the hosted projectnpx supabase db push --linked --include-all # including out-of-order onesnpx supabase db query --linked # run SQL against itChecks
Section titled “Checks”npm run check # typechecknpx tsx scripts/checks/recurrence.ts # recurrence rules, DST, event date syncnpx tsx scripts/checks/formatting.ts # autop/texturize against scripts/checks/formatting-cases.jsonnpx tsx scripts/checks/mailing.ts # mailing emails, signed links, click verdicts, digest timesnpx tsx --env-file=.env scripts/mailing-e2e.ts # mailing through the running site, without Mailgunnpx tsx --env-file=.env scripts/publishing-e2e.ts # drafts, preview, publishThe e2e scripts (scripts/*-e2e.ts, scripts/checks/compose.ts) sign in as LOCAL_ADMIN_EMAIL /
LOCAL_ADMIN_PASSWORD. They were written against a site with content (pages, events, venues,
members), so on the example site some need that content first.