In a monorepo configuration, .env.*
files can be defined in the root workspace and overriden by each application:
Let’s say we have the following monorepo structure:
dotenv-run
will search and load .env.*
files located in the root workspace down to the current working directory.
cli
See vite plugin for more details.