Migrate core authentication and API from Supabase to Appwrite

Co-authored-by: FranP-code <76450203+FranP-code@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-25 20:20:50 +00:00
parent 26e465079b
commit 1f68da4a5b
10 changed files with 623 additions and 263 deletions

View File

@@ -1,13 +1,19 @@
# Environment variables for Inbox Negotiator
# Supabase Configuration
SUPABASE_URL=your_supabase_url_here
SUPABASE_ANON_KEY=your_supabase_anon_key_here
SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key_here
# Appwrite Configuration
PUBLIC_APPWRITE_ENDPOINT=your_appwrite_endpoint_here
PUBLIC_APPWRITE_PROJECT_ID=your_appwrite_project_id_here
PUBLIC_APPWRITE_DATABASE_ID=your_appwrite_database_id_here
APPWRITE_API_KEY=your_appwrite_api_key_here
# Legacy Supabase Configuration (for migration reference)
# SUPABASE_URL=your_supabase_url_here
# SUPABASE_ANON_KEY=your_supabase_anon_key_here
# SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key_here
# Google Generative AI API Key for Gemini model
GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key_here
# Add these same variables to your actual .env file
# Note: The SUPABASE_SERVICE_ROLE_KEY is required for webhook operations
# to bypass Row Level Security (RLS) policies in server-side contexts
# Note: The APPWRITE_API_KEY is required for server-side operations
# and webhook operations with admin privileges