Adapted from: https://supabase.com/docs/guides/with-svelte for https://kit.svelte.dev
since
svelte-kitusesvitewe need to prefix the environment variables withVITE_(locally in.envand globally in your deployment environment [i.e. Netlify])
Set up the Supabase project as described in https://supabase.com/docs/guides/with-svelte (also see utils/db/create-auth-table.sql) and add the following to your local (.gitignore-ed) .env file:
VITE_SVELTE_APP_SUPABASE_URL=<your-project-url>
VITE_SVELTE_APP_SUPABASE_ANON_KEY=<your-public-api-key>
Note: The build directory has been set to
buildto comply with the Netlify default.