Stuck here! cant make .env file in repl

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: https://replit.com/@mayankbagari2/boilerplate-express-1

Challenge: Use the .env File

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Hello,

you cannot make .env file in replit… instead you need to use the Secrets option in the left menu and you can enter the key and value there… then you access the value as you are used to - using process.env.SOMETHING.

Attaching an image to show you where exactly you can input those values, hope it helps.

image

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.