I cannot figure out how to create the .env file needed to set up the project. I have tried cloning it and creating a new .env file and it didn’t work. I see that we now need a key value pair for .env files and there are no instructions on how to do that. I checked several forums and still no budge.
the instructions are outdated and im wasting time trying to figure this out please help.
Your project link(s)
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Challenge: Install and Set Up Mongoose
Link to the challenge:
You can’t add an env file in repl:
yes I know I can’t since replit uses key value pairs so what am I supposed to do if I want to use it?
you need to use the secrets tab as the
.env file is not supported
Yes I know I need the secrets tab but idk how to use it for this project
e sure to surround the URI with single or double quotes, and remember that you can’t use spaces around the
= in environment variables. For example,
It says this, you instead put the
MONGO_URI as secret name and the
VALUE as secret value
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.