In my company, we used to use environment variables we stored in our OS (in my case Windows > Advanced Settings or here) for our Next.js project to build the app.