refactor: remove unused supabase storage path (#129)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,3 +1,3 @@
|
||||
export type ConfigType = {
|
||||
supabaseConfig: { bucketPath: string; url: string; anonKey: string };
|
||||
supabaseConfig: { url: string; anonKey: string };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user