File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -63,15 +63,7 @@ def __init__(
63
63
self .realtime_url : str = f"{ supabase_url } /realtime/v1" .replace ("http" , "ws" )
64
64
self .auth_url : str = f"{ supabase_url } /auth/v1"
65
65
self .storage_url = f"{ supabase_url } /storage/v1"
66
- is_platform = re .search (r"(supabase\.co)|(supabase\.in)" , supabase_url )
67
- if is_platform :
68
- url_parts = supabase_url .split ("." )
69
- self .functions_url = (
70
- f"{ url_parts [0 ]} .functions.{ url_parts [1 ]} .{ url_parts [2 ]} "
71
- )
72
-
73
- else :
74
- self .functions_url = f"{ supabase_url } /functions/v1"
66
+ self .functions_url = f"{ supabase_url } /functions/v1"
75
67
self .schema : str = options .schema
76
68
77
69
# Instantiate clients.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ def test_functions_client_initialization() -> None:
8
8
key = "xxxxxxxxxxxxxx.xxxxxxxxxxxxxxx.xxxxxxxxxxxxxxx"
9
9
sp = supabase .Client (url , key )
10
10
sp .functions ()
11
- assert sp .functions_url == f"https://{ ref } .functions. supabase.co"
11
+ assert sp .functions_url == f"https://{ ref } .supabase.co/functions/v1 "
12
12
13
13
url = "https://localhost:54322"
14
14
sp_local = supabase .Client (url , key )
You can’t perform that action at this time.
0 commit comments