File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,8 @@ export default class SupabaseClient<
93
93
this . realtimeUrl = `${ _supabaseUrl } /realtime/v1` . replace ( / ^ h t t p / i, 'ws' )
94
94
this . authUrl = `${ _supabaseUrl } /auth/v1`
95
95
this . storageUrl = `${ _supabaseUrl } /storage/v1`
96
+ this . functionsUrl = `${ _supabaseUrl } /functions/v1`
96
97
97
- const isPlatform = _supabaseUrl . match ( / ( s u p a b a s e \. c o ) | ( s u p a b a s e \. i n ) / )
98
- if ( isPlatform ) {
99
- const urlParts = _supabaseUrl . split ( '.' )
100
- this . functionsUrl = `${ urlParts [ 0 ] } .functions.${ urlParts [ 1 ] } .${ urlParts [ 2 ] } `
101
- } else {
102
- this . functionsUrl = `${ _supabaseUrl } /functions/v1`
103
- }
104
98
// default storage key uses the supabase project ref as a namespace
105
99
const defaultStorageKey = `sb-${ new URL ( this . authUrl ) . hostname . split ( '.' ) [ 0 ] } -auth-token`
106
100
const DEFAULTS = {
You can’t perform that action at this time.
0 commit comments