I am using an .env file to hold environment variables for the server. This works if I run the server with foreman start. But it doesn't work with nodemon.
I would like to use nodemon instead because it restarts automatically …
I'm building a React SSR App, using Next.js.
I want to be able to access the NODE_ENV on the client side, as this will tell my app which API endpoints to use.
I'm struggling to find a decent …