Claude Code Env Vars Don't Persist: 3 of 80 Runs Fell Back to Prod
I told Claude Code export APP_ENV=staging . My next message said to run the script. It printed target = production . Nothing got deployed. target.py is a one-line stub in a throwaway repo, built around os.environ.get("APP_ENV", "production") , a default you've probably seen in real code. But Claude…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-05 00:43 · DEV Community — AI
Claude Code Env Vars Don't Persist: 3 of 80 Runs Fell Back to Prod