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.
83 lines
746 B
Plaintext
83 lines
746 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
/.pnp
|
|
.pnp.js
|
|
|
|
# Testing
|
|
/coverage
|
|
|
|
# Next.js
|
|
/.next/
|
|
/out/
|
|
.next
|
|
out
|
|
|
|
# Production
|
|
/build
|
|
dist/
|
|
|
|
# Misc
|
|
.DS_Store
|
|
*.pem
|
|
Thumbs.db
|
|
|
|
# Debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# Local env files
|
|
.env
|
|
.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
|
|
|
|
# TypeScript
|
|
*.tsbuildinfo
|
|
tsconfig.tsbuildinfo
|
|
next-env.d.ts
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
.project
|
|
.classpath
|
|
.settings/
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Logs
|
|
logs
|
|
*.log
|
|
|
|
# Temporary files
|
|
*.tmp
|
|
*.bak
|
|
*.cache
|
|
|
|
# Package manager
|
|
.yarn/
|
|
.pnpm-store/
|
|
|