File size: 374 Bytes
d9e7c6f
 
da1f09d
d9e7c6f
 
 
 
da1f09d
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

from supabase import create_client, Client, ClientOptions

url: str = str(os.environ.get("SUPABASE_URL"))
key: str = str(os.environ.get("SUPABASE_KEY"))


CLIENT_TIMEOUT = 7 * 24 * 60 * 60  # one week in seconds
supabase_client: Client = create_client(
    url, key, ClientOptions(postgrest_client_timeout=CLIENT_TIMEOUT, storage_client_timeout=CLIENT_TIMEOUT)
)