Can't read environment variables from Nextjs project
I’m having trouble setting and reading environment variables in a NextJS project. I have two console logs: console.log(‘env’, process.env.NODE_ENV); console.log(‘backend url’, process.env.BACKEND_URL); Running the code without doing anything returns what I expected: env development backend url undefined Exporting variables like this: NODE_ENV=production BACKEND_URL=url Not only prints the previous values, but it also shows the following… Read More Can't read environment variables from Nextjs project