I'm creating an express application
I have a main.js file where is imported the app from express
Other called app.js where is defined the middlewares and what routes use
And other files
The import of dotenv is in the app.js, for that, main.js and app.js can reach the process.env variables but I can't do that the other files that are sync with the project get the env variables
What I am missing?
main.js , this work fine
app.js, this also work fine
other files, here start to break
Any ideas of what is happening? :C Or how I can set the dotenv as a Global variable for all the project?
Thank you!