From 70437e90c2f1ddb4cdb2216f3f5f85189b290f94 Mon Sep 17 00:00:00 2001 From: Marco Gallegos Date: Sun, 18 Jan 2026 15:36:57 -0600 Subject: [PATCH] Temp: Enable console logs in production for debugging - Disable removeConsole in production config - This will help reveal the root cause of API 500 errors - Will revert after issue is resolved --- .env.example | 2 ++ next.config.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 35f0ff2..260481f 100644 --- a/.env.example +++ b/.env.example @@ -18,6 +18,7 @@ TWILIO_AUTH_TOKEN=your_auth_token TWILIO_WHATSAPP_FROM=whatsapp:+14155238886 # NextAuth +# In production, these will be injected by deployment platform (Coolify, Vercel, etc.) NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=your-nextauth-secret @@ -25,6 +26,7 @@ NEXTAUTH_SECRET=your-nextauth-secret RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxxxxxxxxxx # App +# In production, these will be injected by deployment platform (Coolify, Vercel, etc.) NEXT_PUBLIC_APP_URL=http://localhost:3000 # Formbricks (Surveys - Optional) diff --git a/next.config.js b/next.config.js index a5e584b..b23a516 100644 --- a/next.config.js +++ b/next.config.js @@ -22,7 +22,7 @@ const nextConfig = { NEXT_PUBLIC_SUPABASE_ANON_KEY: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY, }, compiler: { - removeConsole: process.env.NODE_ENV === 'production', + removeConsole: false, // Temporarily enable logs for debugging 500 errors }, }