DEV Community

Discussion on: next.js multiple environment builds

Collapse
 
ashinga48 profile image
ashinga48

Thanks for well defining the issue and solution.

Could you help how to resolve this while exporting the static build files. Nextjs doesn't pick any other ENV values while exporting. It defaults NODE_ENV to production & OTHER ENV values to undefined.

Thanks