# ============================================================================= # Supabase Edge Functions Environment Configuration # ============================================================================= # ----------------------------------------------------------------------------- # Supabase Configuration # ----------------------------------------------------------------------------- # Get these from: Supabase Dashboard → Settings → API SUPABASE_URL=https://YOUR_PROJECT.supabase.co SUPABASE_ANON_KEY=your_supabase_anon_key_here SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key_here # ----------------------------------------------------------------------------- # Frontend Configuration # ----------------------------------------------------------------------------- # URL where your frontend is hosted (used for OAuth redirects) # For production: https://yourdomain.com # For local dev: http://localhost:8080 FRONTEND_URL=http://localhost:8080 # ----------------------------------------------------------------------------- # E-commerce Platform OAuth Credentials # ----------------------------------------------------------------------------- # Shopify App Credentials # Get these from: Shopify Partner Dashboard → Apps → Your App SHOPIFY_API_KEY=your_shopify_api_key SHOPIFY_API_SECRET=your_shopify_api_secret # ShopRenter App Credentials # Get these from: ShopRenter App Store → Your App SHOPRENTER_CLIENT_ID=your_shoprenter_client_id SHOPRENTER_CLIENT_SECRET=your_shoprenter_client_secret # WooCommerce OAuth (configured per-store, no global credentials needed) # ----------------------------------------------------------------------------- # Internal Security # ----------------------------------------------------------------------------- # Secret key for scheduled sync authentication (generate with: openssl rand -hex 32) INTERNAL_SYNC_SECRET=your_random_secure_secret_here # ----------------------------------------------------------------------------- # Email Configuration # ----------------------------------------------------------------------------- # Resend API Key for sending emails # Get this from: https://resend.com/api-keys RESEND_API_KEY=your_resend_api_key_here # ----------------------------------------------------------------------------- # Database Configuration (for pg_cron scheduled sync) # ----------------------------------------------------------------------------- # These should also be set in Supabase Dashboard: # Settings → Database → Custom Postgres Configuration # # app.internal_sync_secret = 'same_as_INTERNAL_SYNC_SECRET_above' # app.supabase_url = 'https://YOUR_PROJECT.supabase.co'