.env.example 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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://api.shopcall.ai
  9. SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inp0a2xxb2RjZGplcXBzdmhscHVkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDk3MDkzODMsImV4cCI6MjA2NTI4NTM4M30.Z4D2Ly8_VZc7SoAwDPncBo2XZQbNcps9ATu7u-tWgqY
  10. SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inp0a2xxb2RjZGplcXBzdmhscHVkIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0OTcwOTM4MywiZXhwIjoyMDY1Mjg1MzgzfQ.pcZlXh-oPk-2vYdFoMJeQ4af4thDTYelYxMYzWtyfy8
  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=https://shopcall.ai
  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=2d62a20d40620f95573dec6a
  28. SHOPRENTER_CLIENT_SECRET=9284a57d5b9a439037c4a77b
  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=https://crawler-1.shop.static.shopcall.ai
  48. DEFAULT_SCRAPER_API_SECRET=Uq73P0WPf659tkZGX0P2
  49. # -----------------------------------------------------------------------------
  50. # AI Analytics Configuration
  51. # -----------------------------------------------------------------------------
  52. # OpenRouter API Key for LLM-powered call log analytics
  53. # Get this from: https://openrouter.ai/keys
  54. OPENROUTER_API_KEY=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
  55. # Internal API key for analytics endpoint authentication
  56. # Generate with: openssl rand -hex 32
  57. # This key authenticates requests to the call-log-analytics edge function
  58. ANALYTICS_INTERNAL_API_KEY=int_shopcall_cOftLHMgH-o6JG5z6qfPI9xqswUq2ClBysMiCqKAoK3KkU7O
  59. # -----------------------------------------------------------------------------
  60. # Database Configuration (for pg_cron scheduled sync)
  61. # -----------------------------------------------------------------------------
  62. # These should also be set in Supabase Dashboard:
  63. # Settings → Database → Custom Postgres Configuration
  64. #
  65. # app.internal_sync_secret = 'same_as_INTERNAL_SYNC_SECRET_above'
  66. # app.supabase_url = 'https://YOUR_PROJECT.supabase.co'