Watch: Keep my test data away from my real users | Vovy
Watch Vovy do it on a Mac: "Set up a separate dev database so I stop testing on production". Create a separate Supabase project for development, copy your schema to it with migrations, and point local and preview builds at it.
"Set up a separate dev database so I stop testing on production"
Create a separate Supabase project for development, copy your schema to it with migrations, and point local and preview builds at it.
What happens in the video
- Create a dev project: Vovy creates a second Supabase project named yourapp-dev, so experiments never touch real customer data.
- Copy the schema, not the data: Vovy pulls migrations from production and pushes them to dev with the Supabase CLI. Tables and policies match; real user data stays put.
- Point local and preview at dev: Vovy puts dev keys in your local .env and in Vercel's Preview variables, and leaves Production pointed at the real database.
- Seed some fake data: Vovy fills the dev project with test users and records so every screen has something to show.
- Show the setup: A flow card shows which environment uses which database, and how a change moves from dev to production through migrations.
Read the step-by-step guideLoading...