.env variables are not automatically updated when used in the environments settings #4115
Closed
3 of 4 tasks
Labels
bug
Something isn't working
I have checked the following:
This bug is:
Bruno version
1.39.1
Operating System
macos 15.3
Describe the bug
Many times I have to update my .env for various reasons...
It would be great to have a "reload .env" button or an automatic .env reload to not close and reopen Bruno to do that.
The reload is working only by referring the .env property directly but not if it is referred in a environment variable.
If you define the property in the environment (top right dropdown combo) it is not refreshing when changed in the .env file.
e.g.
this is defined in the DEV env
x_api_key={{process.env.DEV_X_API_KEY}}
this is defined in the STAGING env
x_api_key={{process.env.STAGING_X_API_KEY}}
DEV_X_API_KEY
andSTAGING_X_API_KEY
are defined in the .env file asif you change
DEV_X_API_KEY=1
toDEV_X_API_KEY=A
the change is not reflected automatically in Bruno.Sometime it works by selecting different environments in the top right dropdown, sometime changing the collection...but not always.
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Original discussion here: https://github.com/usebruno/bruno/discussions/4097#discussion-8008259
The text was updated successfully, but these errors were encountered: