Spaces:
Runtime error
Runtime error
Commit ·
0a6a369
1
Parent(s): 86434e0
removed NEXT_PUBLIC_SUPABASE_URL usage
Browse files- app/main.py +2 -7
app/main.py
CHANGED
|
@@ -1641,17 +1641,12 @@ async def export_business_plan(
|
|
| 1641 |
|
| 1642 |
if missing_vars:
|
| 1643 |
error_msg = f"Missing Supabase environment variables: {', '.join(missing_vars)}"
|
| 1644 |
-
|
| 1645 |
-
|
| 1646 |
for key, value in os.environ.items():
|
| 1647 |
if key.startswith("SUPABASE"):
|
| 1648 |
logging.error(f"[export] {key} = {'*' * 10 if 'KEY' in key else value}")
|
| 1649 |
|
| 1650 |
-
# Check for common alternative names
|
| 1651 |
-
alt_url = os.getenv("NEXT_PUBLIC_SUPABASE_URL")
|
| 1652 |
-
if alt_url and not supabase_url:
|
| 1653 |
-
logging.error(f"[export] Found NEXT_PUBLIC_SUPABASE_URL but need SUPABASE_URL")
|
| 1654 |
-
|
| 1655 |
raise HTTPException(
|
| 1656 |
status_code=500,
|
| 1657 |
detail=f"Supabase configuration missing: {', '.join(missing_vars)}. Please add these to your .env file."
|
|
|
|
| 1641 |
|
| 1642 |
if missing_vars:
|
| 1643 |
error_msg = f"Missing Supabase environment variables: {', '.join(missing_vars)}"
|
| 1644 |
+
logging.error(f"[export] {error_msg}")
|
| 1645 |
+
logging.error(f"[export] Available env vars starting with SUPABASE:")
|
| 1646 |
for key, value in os.environ.items():
|
| 1647 |
if key.startswith("SUPABASE"):
|
| 1648 |
logging.error(f"[export] {key} = {'*' * 10 if 'KEY' in key else value}")
|
| 1649 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1650 |
raise HTTPException(
|
| 1651 |
status_code=500,
|
| 1652 |
detail=f"Supabase configuration missing: {', '.join(missing_vars)}. Please add these to your .env file."
|