You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cd ./app && bun dev as command doesn't read .env vars #511
A bit of a weird issue, but I cannot explain it better.
in a vite app that sits at ./app folder, and concurrenlty being executed on the root directory (.), if I run concurrently "cd app && bun dev" the vite app starts, but the environment variables are not read.
Hum not really sorry, but any vite app sitting at a custom ./app folder and running concurrently from the root should be enough to reproduce the error.
I moved to goreman and it has the same annoying behaviour, my current solution is to change the dev command to source .env && vite dev to make it work.
My setup is also a bit uncommon, I've got .env file and an app/.env file. The later is a hard link from the former.
I'm on ubuntu linux.
Activity
gustavohenke commentedon Nov 4, 2024
Hey! Are you able to share a reproduction repository?
alarbada commentedon Nov 4, 2024
Hum not really sorry, but any vite app sitting at a custom
./appfolder and running concurrently from the root should be enough to reproduce the error.I moved to goreman and it has the same annoying behaviour, my current solution is to change the dev command to
source .env && vite devto make it work.My setup is also a bit uncommon, I've got
.envfile and anapp/.envfile. The later is a hard link from the former.I'm on ubuntu linux.
Hope this helps!