I\'ve recently deployed a React/Express app to Heroku, but I\'m having an issue with environment variables that are part of the built app and the Heroku deployment pipeline
2020 solution: use publicRuntimeConfig and serverRuntimeConfig. More here: https://nextjs.org/docs/api-reference/next.config.js/runtime-configuration