From 0078301cccb3bedb96f29db97af1ea18cc330388 Mon Sep 17 00:00:00 2001 From: dahoud Date: Fri, 24 Oct 2025 08:15:29 +0000 Subject: [PATCH] Fix: Autoriser .env.production dans git pour le build Docker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajoute !.env.production au .gitignore pour permettre au fichier d'ĂȘtre versionnĂ©. Cela permet au build Docker de copier .env.production et de le charger avec ENV NODE_ENV production. Fixes the issue where NEXT_PUBLIC_API_URL was not set correctly in production builds. --- .gitignore | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index ae21684..5db1214 100644 --- a/.gitignore +++ b/.gitignore @@ -29,14 +29,21 @@ yarn-error.log* # Local env files .env -.env*.local -.env.local -.env.development -.env.development.local -.env.test -.env.test.local -.env.production -.env.production.local +.env.* +!.env.example +!.env.production +env.local +env.development +env.development.local +env.test +env.test.local +env.production +env.production.local + +# Secrets and sensitive files +*.secret +*secret* +keycloak-secret.txt # Vercel .vercel