chore: i think the docker should now build

This commit is contained in:
Rotimi Best
2024-09-20 09:10:05 +01:00
parent 5438d9acf1
commit 4199fce976
3 changed files with 24 additions and 12 deletions
+9 -5
View File
@@ -9,14 +9,18 @@ const getSupabase = (config) => {
config = {
supabaseConfig: {
url: PUBLIC_SUPABASE_URL || '',
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
url: PUBLIC_SUPABASE_URL,
anonKey: PUBLIC_SUPABASE_ANON_KEY
}
};
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey, {
auth: { persistSession: false }
});
try {
supabase = createClient(config.supabaseConfig.url, config.supabaseConfig.anonKey, {
auth: { persistSession: false }
});
} catch (error) {
console.error('Error starting supabase', error)
}
return supabase;
};