Fix: Autoriser .env.production dans git pour le build Docker
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.
This commit is contained in:
23
.gitignore
vendored
23
.gitignore
vendored
@@ -29,14 +29,21 @@ yarn-error.log*
|
|||||||
|
|
||||||
# Local env files
|
# Local env files
|
||||||
.env
|
.env
|
||||||
.env*.local
|
.env.*
|
||||||
.env.local
|
!.env.example
|
||||||
.env.development
|
!.env.production
|
||||||
.env.development.local
|
env.local
|
||||||
.env.test
|
env.development
|
||||||
.env.test.local
|
env.development.local
|
||||||
.env.production
|
env.test
|
||||||
.env.production.local
|
env.test.local
|
||||||
|
env.production
|
||||||
|
env.production.local
|
||||||
|
|
||||||
|
# Secrets and sensitive files
|
||||||
|
*.secret
|
||||||
|
*secret*
|
||||||
|
keycloak-secret.txt
|
||||||
|
|
||||||
# Vercel
|
# Vercel
|
||||||
.vercel
|
.vercel
|
||||||
|
|||||||
Reference in New Issue
Block a user