Quality Assurance Projects - Metric-Imperial Converter

Tell us what’s happening:
Describe your issue in detail here.
My project is basically done, but the thing is whenever I set up the environmental variable for the NODE_ENV, it keeps on giving errors e.g the site is not loading on the new tab.

Your project link(s)

solution: boilerplate-project-metricimpconverter (1) - Replit

Your browser information:

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

Challenge: Quality Assurance Projects - Metric-Imperial Converter

Link to the challenge:

The tests works whenever I remove the secret env file but it shows it like this:

I humbly ask if anyone can help me?

For some reason, whenever I set up the env secret, the code does not run properly.

Your repl is not found on the link you provided.
That said, when you’re working with replit, you can’t use .env files.
Instead, you should be saving your environment variables in the Secrets tab.
You can then access them as you would any other environment variable (i.e. process.env.VARIABLE_NAME).

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