How do I use a .env file to manage secrets? #1657
-
I have looked here, but it doesn't show the format of the .env file. It's not clear if there are constraints around how it is named either. This post makes it seem like the .env file is a simple property file with key/value pairs. Based on that, here is what I tried: I created a "Test Collection". In the root of the "Test Collection" directory, I created a
I created a PROD environment and created an entry like this: I am passing the When I call the service, here is what gets passed: As you can see, it's not passing the value. What am I doing wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey! How's it going, @braveterry? I noticed that you've done everything correctly, but it seems like you may have made a small mistake with your env file name. Just wanted to let you know that conventionally, environment variables should contain a leading |
Beta Was this translation helpful? Give feedback.
Hey! How's it going, @braveterry? I noticed that you've done everything correctly, but it seems like you may have made a small mistake with your env file name. Just wanted to let you know that conventionally, environment variables should contain a leading
.
in the file name. So instead ofmy.env
, your file should look something like.env
. Thanks!