There are three deployment environments:
- Production (
main
branch) - Staging (
develop
branch) - Local (what we're going to set up)
If you're using Nix, just run nix-shell
. Otherwise, install and set up a local Supabase deployment:
pnpm install
pnpm supabase start
pnpm supabase status -o env > .env
sed -i 's/ANON_KEY/PUBLIC_ANON_KEY/' .env
sed -i 's/API_URL/PUBLIC_API_URL/' .env
Run SvelteKit:
pnpm dev
Then open the provided URL in your browser.
To log in, you must use magic link authentication. The OAuth providers won't work.
Emails are sent to an Inbucket service at http://localhost:54324/.