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
View File
@@ -1,7 +1,6 @@
# Supabase setup - Required
PUBLIC_SUPABASE_PROJECT_REF=localhost
PUBLIC_SUPABASE_URL=http://localhost:54321
PUBLIC_SUPABASE_BUCKET_URL=http://localhost:54323
PUBLIC_SUPABASE_ANON_KEY=
# Email setup - Optional if you want to get/send emails
-1
View File
@@ -133,7 +133,6 @@ Here is what you need to be able to run Cal.com.
```env
PUBLIC_SUPABASE_URL=<API URL>
PUBLIC_SUPABASE_ANON_KEY=<anon key>
PUBLIC_SUPABASE_BUCKET_URL=<Inbucket URL>
```
- To view the Supabase studio, open the Studio URL from the result of supabase start
@@ -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 };
};