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?
@mattwaler nice suggestion, I will implement it and update in this thread later
@mattwaler @Ruegen @yfwz100 @devalnor I have supported the {{$dotenv variableName}} syntax, and you just need to put the .env file in the same folder of your .http file. However, .env.local file is not supported currently.
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
Most helpful comment
@mattwaler @Ruegen @yfwz100 @devalnor I have supported the
{{$dotenv variableName}}syntax, and you just need to put the .env file in the same folder of your.httpfile. However,.env.localfile is not supported currently.