79452587

Date: 2025-02-19 19:44:23
Score: 1
Natty:
Report link

Tried a lot of solutions, but all I had to do was remove de { path: "..."} configuration object.

This: import dotenv from "dotenv" dotenv.config({ path: "../.env" })

Turned into this: import dotenv from "dotenv" dotenv.config()

Even though my server.js file is not in the same directory of my .env f

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: StomperHK