From 50063050672dd04478a9a8904f8db9f2ebc22f84 Mon Sep 17 00:00:00 2001 From: Chetan Pawar Date: Sat, 21 Jun 2025 21:14:17 +0530 Subject: [PATCH] update setup.py fix: raise error if SUPABASE_URL is missing from env or .env --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 7681e2a4..b83e86b7 100644 --- a/setup.py +++ b/setup.py @@ -615,6 +615,10 @@ def setup_supabase(): supabase_url = line.strip().split('=', 1)[1] break + # Add this check + if not supabase_url: + raise RuntimeError("SUPABASE_URL not found in environment or backend/.env file.") + project_ref = None if supabase_url: # Extract project reference from URL (format: https://[project_ref].supabase.co)