Dev environment
Setup your dev environment for the Supabase Stripe Starter Kit. Link your repository to Supabase, setup env variables, and run your dev server.
Link your repository to supabase
Setup env variables
In your repository directory, you should have a .env.local.example file which looks like this. For dev environment, just copy the .env.local.example file to .env.local. The localhost values are used for local development.So nothing needs to change here.
Supabase env for login with providers
Note. Supabase also reads from .env.local for local development. Read more about it in this github issue.
It reads from .env.local for local development, or .env in that priority.
Note: If you don't need to login with providers, yet you can avoid setting up the above env variables. However, please ensure that you comment out the authentication provider logic for the
providers you don't need in the supabase/config.toml
file.
Run your dev server
We are ready to start our dev server. Run
pnpm dev
Our local development server is now running at localhost:3000
.