cd ./app && bun dev as command doesn't read .env vars

Author: alarbadaCreated Oct 31, 2024Updated May 5, 2025

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.

This doesn't happen with goreman.

Source: open-cli-tools/concurrently