Lavis.dev
Go-live checklist
Add these to .env.local, then restart npm run dev.
NEXT_PUBLIC_SUPABASE_URL + NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY
Accounts, catalog, downloads
SUPABASE_SECRET_KEY
Webhook writes + signing download links
STRIPE_SECRET_KEY
Checkout + billing portal
STRIPE_WEBHOOK_SECRET
Recording purchases & subscriptions
NEXT_PUBLIC_SITE_URL
Redirect URLs (defaults to localhost:3000)
Steps
- 01Create a Supabase project (dev), copy its URL + publishable + secret keys into .env.local
- 02npx supabase link --project-ref <ref> → npx supabase db push (creates tables, RLS, buckets)
- 03Add Stripe test keys, then: npm run stripe:seed (creates the sample catalog in test mode)
- 04stripe listen --forward-to localhost:3000/api/stripe/webhook → paste the whsec_ into .env.local
- 05npm run stripe:backfill → products appear; publish them in Supabase Studio (published = true)
- 06Upload a file: npm run release -- <slug> <version> <path-to.zip>