File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ export default class SupabaseClient {
52
52
if ( ! supabaseUrl ) throw new Error ( 'supabaseUrl is required.' )
53
53
if ( ! supabaseKey ) throw new Error ( 'supabaseKey is required.' )
54
54
55
- supabaseUrl = stripTrailingSlash ( supabaseUrl )
56
-
55
+ const _supabaseUrl = stripTrailingSlash ( supabaseUrl )
57
56
const settings = { ...DEFAULT_OPTIONS , ...options }
58
- this . restUrl = `${ supabaseUrl } /rest/v1`
59
- this . realtimeUrl = `${ supabaseUrl } /realtime/v1` . replace ( 'http' , 'ws' )
60
- this . authUrl = `${ supabaseUrl } /auth/v1`
61
- this . storageUrl = `${ supabaseUrl } /storage/v1`
57
+
58
+ this . restUrl = `${ _supabaseUrl } /rest/v1`
59
+ this . realtimeUrl = `${ _supabaseUrl } /realtime/v1` . replace ( 'http' , 'ws' )
60
+ this . authUrl = `${ _supabaseUrl } /auth/v1`
61
+ this . storageUrl = `${ _supabaseUrl } /storage/v1`
62
62
this . schema = settings . schema
63
63
64
64
this . auth = this . _initSupabaseAuthClient ( settings )
You can’t perform that action at this time.
0 commit comments