Spaces:
Runtime error
Runtime error
Commit History
-
Add Supabase storage and DB env handling
Introduce Supabase storage support and improve environment loading for the database. .env.example updated with DATABASE_URL, SUPABASE_* keys and storage bucket example. backend/database.py now loads .env (handles running from repo root or subfolder), requires DATABASE_URL, normalizes postgres URL prefix, removes sqlite-specific connect_args and legacy migration code, and adds a file_path column to SpecDocument. backend/services/storage.py adds abstract method docs, ensures file pointers are reset for local saves, and implements SupabaseStorageProvider (upload/delete/get_public_url). backend/services/asset_service.py selects Supabase vs local provider based on env, logs provider choice, and updates asset upload logic to save files to storage and record file paths. backend/main.py upload_spec now saves the uploaded spec to storage, records file_path on the SpecDocument, and adds basic error logging. requirements.txt updated to relax httpx version and add supabase and websockets dependenc…fbefffb
-
Clean and flattened project initialization
3c8d218