You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just put the .env file in the same directly as the http file (not sure if it can also be in a parent directory or at project root level, could be worth trying out). and directly put in your request:
# .env
DOMAIN_URL=localhost
# endpoint.http
POST https://{{$dotenv DOMAIN_URL}}/some/endpoint HTTP/1.1
Cheers @domoran. The issue here for me is if that's the case, then we can't share the .http file between the team as it's a mix of editors and this is VS Code specific 😞
I'm a vim user that is researching a way to share these via our code repos and across a team of 50+ engineers, so it looks like this plugin won't work then.
Using the setting config would have been the best solution for us.
I was looking at this feature request, and my understanding is that the following should work:
However, it does not seem to replace
DOMAIN_URL
with the value from the.env
file.Am I doing something wrong, or misunderstanding the functionality?
The text was updated successfully, but these errors were encountered: