Improve location data handling and error reporting in the app

Update LocationSearch component to safely access address properties and add fallback values for city, state, and country. Refactor supabase/functions/detect-location/index.ts to use a generic endRequest function, removing hardcoded status codes for error handling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 3c76e833-eccc-4712-b9a4-70241b5590a1
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
pac7
2025-10-27 23:39:30 +00:00
parent 5197041d37
commit ac65e4b4db
3 changed files with 12 additions and 11 deletions

View File

@@ -45,7 +45,3 @@ externalPort = 3001
[[ports]]
localPort = 37623
externalPort = 3002
[[ports]]
localPort = 46475
externalPort = 3003