We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It appears bud.env is bringing my public development env vars to my remote environment instead of using the remote .env file.
For example:
My dev env file:
PUBLIC_TOKEN='dev_token'
My staging env file:
PUBLIC_TOKEN='staging_token'
if I have console.log(TOKEN), in the dev and staging env, it returns 'dev_token'.
I also added a env var to staging only called PUBLIC_TEST. On staging, console.log(TEST) returns 'undefined'.
Dev public env vars should only be accessible in the dev environment. Staging public env vars should only be accessible in the staging environment.
When adding env vars, the local dev vars are being used in a remote staging env instead of the public vars from the remote .env file.
6.23.3
No response
The text was updated successfully, but these errors were encountered:
I don't think it's possible for bud.js to do this.
This is the code that reads the env file:
https://github.com/roots/bud/blob/main/sources/@roots/bud-framework/src/bootstrap/env/index.ts#L64-L94
There is no caching involved; it is a straight filesystem read. I think the value must be set incorrectly in the .env file.
Sorry, something went wrong.
No branches or pull requests
Agreement
Describe the issue
It appears bud.env is bringing my public development env vars to my remote environment instead of using the remote .env file.
For example:
My dev env file:
My staging env file:
if I have console.log(TOKEN), in the dev and staging env, it returns 'dev_token'.
I also added a env var to staging only called PUBLIC_TEST. On staging, console.log(TEST) returns 'undefined'.
Expected Behavior
Dev public env vars should only be accessible in the dev environment. Staging public env vars should only be accessible in the staging environment.
Actual Behavior
When adding env vars, the local dev vars are being used in a remote staging env instead of the public vars from the remote .env file.
Steps To Reproduce
version
6.23.3
Logs
No response
Configuration
No response
Relevant .budfiles
No response
The text was updated successfully, but these errors were encountered: