2. Check Environment Typos
Purpose: Guard against common env file typos (e.g., SUPABASE_ULR instead of SUPABASE_URL) and detect accidentally tracked env files in git.
Prerequisites: None
Cost / Duration: $0 | ~15 sec
Prompt
Check for env file typos and tracked secrets.
Step 1 — Run the typo check:
```bash
bun run env:check-typos
```
Checks for common typos in env files and verifies no sensitive env files
are tracked by git.
Expected: Exit code 0 — no typos or tracked env files found.
If a typo is detected, fix the variable name in `.env.local`.
If a tracked env file is found, remove it from git tracking:
```bash
git rm --cached .env.local
```
Verification
-
bun run env:check-typosexits with code 0 - No typos detected in env variable names
- No
.env.localor other sensitive env files tracked by git
Related Prompts
- Validate Env Completeness — Ensure
.env.examplehas all variables