Skip to content

Commit

Permalink
idk if this fixes anything
Browse files Browse the repository at this point in the history
  • Loading branch information
elimelt committed Jan 22, 2025
1 parent 50908dd commit 72bc92b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/service/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { Database } from '../database.types'
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL!
const supabaseKey = import.meta.env.VITE_SUPABASE_KEY!

if (!supabaseUrl || !supabaseKey) {
throw new Error('Supabase URL and key must be provided. I\'m not sure why they aren\'t right now...')
}

const supabase = createClient<Database>(supabaseUrl, supabaseKey)

export { supabase }

0 comments on commit 72bc92b

Please sign in to comment.