-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i place all .env files in a directory? #2506
Comments
@LinusBorg I'm working on it and I thought to add a new option |
might be a nice idea, yes. |
Our overall guideline is - all CLI projects should have consistent file structures as much as possible. The CLI is opinionated by nature. This is why we do not provide options for configuring source directory or public directory names. If we add an option for this we essentially need to add options for renaming every possible config file and directory, and that would
|
Hello giving second thought of this. As in my project structure, it's a monorepo that contain backend API and frontend website together.
Both may share the same variable, thus it's best if they can refer to the same
So, if it's related to the discussion here, can the If there's a better suggestion to resolve this, please share ;) |
I have the exact same issue as @chenxeed
Not ideal but works for now. |
Another workaround that supports variable expansion: Add to the beginning of
|
this works with a single .env for me, but what if i want to put on the same folder all the env files? i tried
or
i just all env files to be called inside that folder |
Ideally you shouldn't use multiple dotenv files. At the same tume. https://12factor.net/config Instead, have multiple separate files. If you really want to do this though, I suspect this would work:
|
thanks. |
What problem does this feature solve?
I don't like placing all .env files in porject root , it makes my project structure look lengthy, can i make a directory to place them in it ?
What does the proposed API look like?
I can config it in vue.config.js
The text was updated successfully, but these errors were encountered: