Commit Graph

5 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
bf3da6414a Centralize CORS configuration
Consolidate CORS handling by introducing a shared supabase/functions/_shared/cors.ts and migrate edge functions to import from it. Remove inline cors.ts usage across functions, standardize headers (including traceparent and x-request-id), and prepare for environment-aware origins.
2025-11-10 21:28:46 +00:00
gpt-engineer-app[bot]
2d65f13b85 Connect to Lovable Cloud
Add centralized errorFormatter to convert various error types into readable messages, and apply it across edge functions. Replace String(error) usage with formatEdgeError, update relevant imports, fix a throw to use toError, and enhance logger to log formatted errors. Includes new errorFormatter.ts and widespread updates to 18+ edge functions plus logger integration.
2025-11-10 18:09:15 +00:00
gpt-engineer-app[bot]
41a3dcd02f Refactor: Handle direct emails to admin 2025-10-28 20:36:12 +00:00
gpt-engineer-app[bot]
375db2e7d8 Fix thread ID matching for email replies 2025-10-28 20:29:14 +00:00
gpt-engineer-app[bot]
c42b34b327 Approve database migration 2025-10-28 17:35:40 +00:00