The previous approach using useEnvVars() hook had a closure problem: - envVars started as [] on first render - buildEnvObject captured this empty array - Even with function body, the transport memoized the old buildEnvObject Solution: Read directly from localStorage inside the body function - Bypasses React state entirely - Gets fresh values on each request - No closure issues 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .env.local.example | ||
| next-env.d.ts | ||
| next.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| tailwind.config.ts | ||
| tsconfig.json | ||