Required Environment Variables
After installation, you need to set up your environment variables. Copy the.env.example
file to .env
and configure the following required variables:
Base Configuration
web/.env
Supabase Configuration
web/.env
URL Configuration
Live
Set yourSite URL
to your deployed auth callback URL. https://www.yourdomain.com/auth/callback
Testing
Make sure to add yourRedirect Urls
to URL Configuration
in Authentication
in Supabase.
Localhost would be http://localhost:3000/**
Cloud
Create a new Supabase project and copy these values from your project dashboard. They can also be obtained by going to “Project settings” -> “API”.You probably want to set your own SMTP server and set up your credentials in Supabase to avoid rate limiting. You can do this by going to “Project settings” -> “Authentication” -> “SMTP Settings”.
In this case, make sure you set spf and dkim in your DNS records. Otherwise, your emails will not be delivered to some providers like gmail.
Don’t forget to save your database password in a secure location. Otherwise, you have to reset it.
Selfhosted
For local development, go tosupabase/config.toml
and set your project name. Start your database by running
.env
file. Of course, you can also use your self-hosted Supabase instance.