Secrets on replit

Tell us what’s happening:
Describe your issue in detail here.
I don’t understand how the secrets on replit work.
I can’t create the .env file so I have to use the “secrets tab”.
The secrets tab ask me for a “key” and a “value”
Should the key be MESSAGE_STYLE, and the value “uppercase”?
Where will this secret be added?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36

Challenge: Use the .env File

Link to the challenge:

1 Like


You can access it on process.env.

They will “live” in these “secrets” tab for you. Don’t know where Replit actually store it – I bet they have a document describing this. But you totally should create a secret to play with, and pay attention down to the bottom of the tab. There are all of it: examples on how to use them in code, some hints, and even an “Insert” button to insert chosen secret in current file. They’re being user-friendly!