Replace Resend with n8n webhook relay for emails
- email.ts: POST to N8N_EMAIL_WEBHOOK_URL instead of Resend API - env.ts: replace RESEND_API_KEY with N8N_EMAIL_WEBHOOK_URL - .env.example: document new env var - Add n8n workflow JSON (Webhook -> Gmail -> Respond) ready to import
This commit is contained in:
@@ -12,9 +12,9 @@ NODE_ENV=development
|
||||
SUPABASE_URL=https://tu-supabase.tudominio.com
|
||||
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
||||
|
||||
# Resend — servicio de email
|
||||
# Crear cuenta en https://resend.com y configurar dominio
|
||||
RESEND_API_KEY=re_...
|
||||
# n8n — relé de email vía webhook (n8n se encarga de enviar por Gmail/SMTP)
|
||||
# La URL es la del webhook configurado en el workflow de n8n.
|
||||
N8N_EMAIL_WEBHOOK_URL=https://n8n.tudominio.com/webhook/naturcalabacera-email
|
||||
EMAIL_FROM=Naturcalabacera <reservas@tudominio.com>
|
||||
|
||||
# Destinatarios de notificaciones (parametrizables, sin hardcodear)
|
||||
|
||||
Reference in New Issue
Block a user