-
Notifications
You must be signed in to change notification settings - Fork 445
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
Native .env file support? #418
Comments
@mattwaler nice suggestion, I will implement it and update in this thread later |
@mattwaler @Ruegen @yfwz100 @devalnor I have supported the |
Awesome! Thank you so much for this amazing extension. |
@mattwaler @Ruegen @yfwz100 @devalnor you can try the latest version 0.23.0 to verify it. |
It works, Thanks! |
Is the use case of {{$dotenv variableName}} in an environment variable value supported? |
@tomdavidson Yes, when the .env file and .http file are in the same directory this works as intended. |
@mattwaler thanks, ill open up a new issue then - #489 |
@Huachao can we specify the location of .env file? or walk up to the root of current vscode project? My |
.env does not have to be in the same folder anymore. I used existing .env in the root of the project while making requests from subfolders and it works perfectly fine 👍 |
I'm using
.env
files to do all of my secret hiding. It kinda stinks to have to translate the values to JSON in the settings folder. Is it feasible/possible to be able to access.env
file values at the root of the folder to be accessible by the extension? Maybe via{{$dotenv PORT}}
for a file named.env
and{{$dotenvLocal PORT}}
for a.env.local
file?The text was updated successfully, but these errors were encountered: