File size: 699 Bytes
a31fd7f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import os
from dotenv import load_dotenv
# Load .env file
load_dotenv()
class Settings:
PROJECT_NAME: str = "Earthquake Damage & Shelter Mapping API"
VERSION: str = "1.0.0"
# Supabase configuration
SUPABASE_URL: str = os.getenv("SUPABASE_URL", "")
SUPABASE_KEY: str = os.getenv("SUPABASE_KEY", "")
# Gemini AI configuration
GEMINI_API_KEY: str = os.getenv("GEMINI_API_KEY", "")
# CORS origins allowed
ALLOWED_ORIGINS: list[str] = [
"http://localhost:5173", # React / Vite default dev server
"http://localhost:3000",
"*" # Allow all for development / flexible deployment
]
settings = Settings()
|