router
router copied to clipboard
Start not loading environment variables from .env.*
Which project does this relate to?
Start
Describe the bug
Environment variables from .env.development aren't being loaded and merged with .env.
This might be related to #5217.
Your Example Website or App
https://github.com/Benjamin-Lee/tanstack-start-env
Steps to Reproduce the Bug or Issue
- Clone the repo and install dependencies
- Run
npm run devorbun run dev(don't runbun --bun run devsince that uses Bun's environment loader) - Take a look at localhost:3000
Expected behavior
On localhost, we'd expect to see:
SECRET: foo
EXAMPLE: bar
Screenshots or Videos
Platform
- Router / Start Version: 1.140.0
- OS: macOS
- Browser: N/A
- Browser Version: N/A
- Bundler: vite
- Bundler Version: 7.2.7
Additional context
No response
๐ CodeRabbit Plan Mode
Generate an implementation plan and agent prompts for this issue.
- [ ] Create Plan
๐ Similar & Duplicate Issues
Possible Duplicates
Related Issues
๐ Related PRs
TanStack/router#5334 - docs: fix Bun server environment variable names and improve clarity [merged] TanStack/router#5735 - examples:start-clerk-basic fixed .env [merged]
๐ค Suggested Assignees
- AlexanderHott
- ryanagillie
- magnusmay
- devanfarrell
๐งช Issue enrichment is currently in early access.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false