mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 22:11:11 -05:00
18 lines
896 B
TypeScript
18 lines
896 B
TypeScript
// Note: This file uses environment variables for Supabase URL configuration.
|
|
import { createClient } from '@supabase/supabase-js';
|
|
import type { Database } from './types';
|
|
import { authStorage } from '@/lib/authStorage';
|
|
|
|
const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL || "https://api.thrillwiki.com";
|
|
const SUPABASE_PUBLISHABLE_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY || "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InlkdnRtbnJzenlicW5iY3FiZGN5Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTgzMjYzNTYsImV4cCI6MjA3MzkwMjM1Nn0.DM3oyapd_omP5ZzIlrT0H9qBsiQBxBRgw2tYuqgXKX4";
|
|
|
|
// Import the supabase client like this:
|
|
// import { supabase } from "@/integrations/supabase/client";
|
|
|
|
export const supabase = createClient<Database>(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, {
|
|
auth: {
|
|
storage: authStorage,
|
|
persistSession: true,
|
|
autoRefreshToken: true,
|
|
}
|
|
}); |