security: exclude .env.bak files from git and deployment

- Add .env.bak* patterns to .gitignore
- Explicitly exclude .env.bak* files from Firebase deployment
- Prevents accidental exposure of backup files containing secrets
This commit is contained in:
Jonathan Pressnell
2025-11-12 16:50:46 -05:00
parent e7dc27ee8f
commit 8d513fe7ed
2 changed files with 11 additions and 1 deletions

6
.gitignore vendored
View File

@@ -15,6 +15,10 @@ build/
.env.development.local
.env.test.local
.env.production.local
.env.bak
.env.bak*
*.env.bak
*.env.bak*
# Logs
logs/
@@ -103,6 +107,8 @@ Thumbs.db
# Uploads
uploads/
# Exception: Test PDF file for development (must come before *.pdf)
!/Creed CIM.pdf
*.pdf
*.doc
*.docx

View File

@@ -16,7 +16,11 @@
"cloud-run.yaml",
".env",
".env.*",
"*.env"
"*.env",
".env.bak",
".env.bak*",
"*.env.bak",
"*.env.bak*"
],
"predeploy": [
"npm run build"