Javascript – Next.JS environment issue
Hello im trying to use environment at my MongoDB connection, but the value comes "undefined" My database connection structure like: src/db/connection.js src/server.js I can use console.log(process.env.MONGODB_URI) at src/pages/index.js but i cant use at backend server it says "undefined". import mongoose…