refactor: remove unused supabase storage path (#129)

This commit is contained in:
Rotimi Best
2024-01-19 16:40:52 +01:00
committed by GitHub
parent 89dd3fd94f
commit a1dcc0e85a
4 changed files with 2 additions and 9 deletions
@@ -1,8 +1,4 @@
import {
PUBLIC_SUPABASE_ANON_KEY,
PUBLIC_SUPABASE_URL,
PUBLIC_SUPABASE_BUCKET_URL
} from '$env/static/public';
import { PUBLIC_SUPABASE_ANON_KEY, PUBLIC_SUPABASE_URL } from '$env/static/public';
import { createClient, SupabaseClient } from '@supabase/supabase-js';
import type { ConfigType } from '../types';
@@ -12,7 +8,6 @@ export const getSupabase = (config?: ConfigType) => {
if (supabase) return supabase;
config = {
supabaseConfig: {
bucketPath: PUBLIC_SUPABASE_BUCKET_URL + '/storage/v1/object/sign/',
url: PUBLIC_SUPABASE_URL || '',
anonKey: PUBLIC_SUPABASE_ANON_KEY || ''
}
+1 -1
View File
@@ -1,3 +1,3 @@
export type ConfigType = {
supabaseConfig: { bucketPath: string; url: string; anonKey: string };
supabaseConfig: { url: string; anonKey: string };
};