Spaces:
Paused
Paused
File size: 476 Bytes
2f0020c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
from dotenv import find_dotenv, load_dotenv
print(f"CWD: {os.getcwd()}")
env_path = find_dotenv()
print(f"Found .env at: {env_path}")
if env_path:
load_dotenv(env_path, override=True)
url = os.environ.get("SUPABASE_URL")
print(f"SUPABASE_URL present: {bool(url)}")
if url:
print(f"SUPABASE_URL length: {len(url)}")
print(f"SUPABASE_URL starts with 'https://': {url.startswith('https://')}")
else:
print(".env file not found!")
|