Supabase authentication with SvelteKit SSR



This template was build using Supabase Guide with some minor tweaks:

  • Full page protection inside hooks.server.ts, which means EVERY request is checked.
  • Moved image logic into server side.
  • Cleared all strict typescript warnings.

Missing environment variables

For local development You can create an .env file in root folder.

PUBLIC_SUPABASE_URL='supabase url'
PUBLIC_SUPABASE_ANON_KEY='supabase anon key'

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes