.env.example 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # =============================================================================
  2. # Supabase Edge Functions Environment Configuration
  3. # =============================================================================
  4. # -----------------------------------------------------------------------------
  5. # Supabase Configuration
  6. # -----------------------------------------------------------------------------
  7. # Get these from: Supabase Dashboard → Settings → API
  8. SUPABASE_URL=https://YOUR_PROJECT.supabase.co
  9. SUPABASE_ANON_KEY=your_supabase_anon_key_here
  10. SUPABASE_SERVICE_ROLE_KEY=your_supabase_service_role_key_here
  11. # -----------------------------------------------------------------------------
  12. # Frontend Configuration
  13. # -----------------------------------------------------------------------------
  14. # URL where your frontend is hosted (used for OAuth redirects)
  15. # For production: https://yourdomain.com
  16. # For local dev: http://localhost:8080
  17. FRONTEND_URL=http://localhost:8080
  18. # -----------------------------------------------------------------------------
  19. # E-commerce Platform OAuth Credentials
  20. # -----------------------------------------------------------------------------
  21. # Shopify App Credentials
  22. # Get these from: Shopify Partner Dashboard → Apps → Your App
  23. SHOPIFY_API_KEY=your_shopify_api_key
  24. SHOPIFY_API_SECRET=your_shopify_api_secret
  25. # ShopRenter App Credentials
  26. # Get these from: ShopRenter App Store → Your App
  27. SHOPRENTER_CLIENT_ID=your_shoprenter_client_id
  28. SHOPRENTER_CLIENT_SECRET=your_shoprenter_client_secret
  29. # WooCommerce OAuth (configured per-store, no global credentials needed)
  30. # -----------------------------------------------------------------------------
  31. # Internal Security
  32. # -----------------------------------------------------------------------------
  33. # Secret key for scheduled sync authentication (generate with: openssl rand -hex 32)
  34. INTERNAL_SYNC_SECRET=your_random_secure_secret_here
  35. # -----------------------------------------------------------------------------
  36. # Email Configuration
  37. # -----------------------------------------------------------------------------
  38. # Resend API Key for sending emails
  39. # Get this from: https://resend.com/api-keys
  40. RESEND_API_KEY=your_resend_api_key_here
  41. # -----------------------------------------------------------------------------
  42. # Webshop Scraper Configuration
  43. # -----------------------------------------------------------------------------
  44. # Default scraper API configuration (can be overridden per store)
  45. # For local development: http://127.0.0.1:3000
  46. # For production: https://your-scraper-api.com
  47. DEFAULT_SCRAPER_API_URL=http://127.0.0.1:3000
  48. DEFAULT_SCRAPER_API_SECRET=your_shared_secret_key_here
  49. # -----------------------------------------------------------------------------
  50. # Database Configuration (for pg_cron scheduled sync)
  51. # -----------------------------------------------------------------------------
  52. # These should also be set in Supabase Dashboard:
  53. # Settings → Database → Custom Postgres Configuration
  54. #
  55. # app.internal_sync_secret = 'same_as_INTERNAL_SYNC_SECRET_above'
  56. # app.supabase_url = 'https://YOUR_PROJECT.supabase.co'