Conversation
There was a problem hiding this comment.
Pull request overview
This PR performs cleanup tasks across the LittleFireExperiments projects by removing unused boilerplate files from Next.js applications and adding environment variable examples. The changes mark two TODO items as complete: removing unused files and adding .env.examples.
- Removes standard Next.js boilerplate SVG files (next.svg, vercel.svg, globe.svg, window.svg, file.svg) from all three experiment projects
- Adds
.env.examplefiles to each project with the sharedLFE_WFIS_DATABASE_URLconfiguration - Updates
.gitignorefiles to allow.env.exampleto be committed while still ignoring.env - Corrects a spelling error in TODO.md and marks cleanup tasks as complete
Reviewed changes
Copilot reviewed 10 out of 34 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| TODO.md | Corrects spelling error ("reppo" → "repo") and marks cleanup tasks as completed |
| LittleFireExperiments/WhichTool/which-tool-is-good/.gitignore | Changes pattern from .env* to .env to allow .env.example to be tracked |
| LittleFireExperiments/WhichTool/which-tool-is-good/.env.example | Adds database URL environment variable example |
| LittleFireExperiments/WhichTool/which-tool-is-good/public/*.svg | Removes unused Next.js boilerplate SVG files |
| LittleFireExperiments/StatementAgree/agree-or-disagree/.gitignore | Changes pattern from .env* to .env to allow .env.example to be tracked |
| LittleFireExperiments/StatementAgree/agree-or-disagree/.env.example | Adds database URL environment variable example |
| LittleFireExperiments/StatementAgree/agree-or-disagree/public/*.svg | Removes unused Next.js boilerplate SVG files |
| LittleFireExperiments/MagicReal/what-makes-magic-real/whatMakesMagicReal.csv | Removes data file from project root |
| LittleFireExperiments/MagicReal/what-makes-magic-real/.gitignore | Changes pattern from .env* to .env to allow .env.example to be tracked |
| LittleFireExperiments/MagicReal/what-makes-magic-real/.env.example | Adds database URL environment variable example |
| LittleFireExperiments/MagicReal/what-makes-magic-real/public/*.svg | Removes unused Next.js boilerplate SVG files |
| LittleFireExperiments/GoodFood/which-food-is-good/.gitignore | Changes pattern from .env* to .env to allow .env.example to be tracked |
| LittleFireExperiments/GoodFood/which-food-is-good/.env.example | Adds database URL environment variable example |
| LittleFireExperiments/GoodFood/which-food-is-good/public/*.svg | Removes unused Next.js boilerplate SVG files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
| .env |
There was a problem hiding this comment.
Changing .gitignore to only ignore .env (from the more comprehensive .env*) can lead to accidental commits of environment-specific files like .env.local, .env.production, and .env.development, leaking secrets stored in those files. An attacker accessing the repository or its history could obtain database credentials, API keys, or other sensitive configuration. Revert to ignoring all env variants (e.g., use .env*) or explicitly ignore known patterns:
.env
.env.*
.env.local
.env.development
.env.production
.env.test| .env | |
| .env | |
| .env.* | |
| .env.local | |
| .env.development | |
| .env.production | |
| .env.test |
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
| .env |
There was a problem hiding this comment.
Changing .gitignore to only ignore .env (from .env*) increases the risk of committing environment-specific files (e.g., .env.local, .env.production), exposing secrets like API keys and database URLs. If these files are pushed to VCS, attackers with repo access can retrieve sensitive credentials. Revert to .env* or explicitly ignore common variants:
.env
.env.*
.env.local
.env.development
.env.production
.env.test| .env | |
| .env | |
| .env.* | |
| .env.local | |
| .env.development | |
| .env.production | |
| .env.test |
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
| .env |
There was a problem hiding this comment.
Narrowing .gitignore from .env* to .env can result in environment-specific files (e.g., .env.local, .env.production) being tracked and committed, leaking secrets within those files. Anyone with repo or commit history access could obtain credentials and sensitive configuration. Restore ignoring all env variants (use .env*) or ignore explicit patterns like:
.env
.env.*
.env.local
.env.development
.env.production
.env.test| .env | |
| .env | |
| .env.* | |
| .env.local | |
| .env.development | |
| .env.production | |
| .env.test |
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
| .env |
There was a problem hiding this comment.
Restricting .gitignore to only .env (instead of .env*) risks committing files like .env.local, .env.production, and .env.development with secrets. Attackers with access to the repository or its history could extract sensitive credentials. Revert to .env* or add explicit ignore patterns:
.env
.env.*
.env.local
.env.development
.env.production
.env.test| .env | |
| .env | |
| .env.* | |
| .env.local | |
| .env.development | |
| .env.production | |
| .env.test |
No description provided.