chore: backend/.env aus Git entfernt + .gitignore klargestellt
backend/.env war seit "first commit" getrackt (mit echten Secrets: JWT_SECRET, ENCRYPTION_KEY, DB-Password). Das Pattern .env war zwar in .gitignore, wirkte aber nicht rückwirkend. - git rm --cached backend/.env (Datei bleibt lokal) - backend/.gitignore + frontend/.gitignore: explizite !.env.example Whitelist zur Klarstellung - Neue Root-.gitignore mit gemeinsamen Patterns (Env, OS, IDE, Logs) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
389b878dbd
commit
3b4a680326
|
|
@ -0,0 +1,27 @@
|
|||
# Root-Gitignore: gemeinsame Patterns für Repo-Root + nested Verzeichnisse
|
||||
# (backend/, frontend/, docker/ haben zusätzlich eigene .gitignore-Files)
|
||||
|
||||
# Environment – echte Secrets blocken, .env.example weiter mittracken
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
!.env.example
|
||||
|
||||
# OS
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# IDE
|
||||
.idea/
|
||||
.vscode/
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
|
||||
# Temp
|
||||
tmp/
|
||||
*.tmp
|
||||
*.bak
|
||||
|
|
@ -4,10 +4,11 @@ node_modules/
|
|||
# Build
|
||||
dist/
|
||||
|
||||
# Environment
|
||||
# Environment – echte Secrets blocken, .env.example weiter mittracken
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
!.env.example
|
||||
|
||||
# Database Backups (can be large, keep folder structure)
|
||||
prisma/backups/*
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@ node_modules/
|
|||
dist/
|
||||
dist-ssr/
|
||||
|
||||
# Environment
|
||||
# Environment – echte Secrets blocken, .env.example weiter mittracken
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
!.env.example
|
||||
|
||||
# Logs
|
||||
*.log
|
||||
|
|
|
|||
Loading…
Reference in New Issue