How to change environment variable values at runtime in NEXT.JS without having to rebuild the project again
I have a NEXT.JS project and I want to deploy it to 3 different environments. For example: SIT, UAT, PROD, all these 3 environments have different configuration values like API_URL and API_KEY which must be changed accordingly. So I have to build the project again and again every time I want to deploy to another environment because by default NEXT.JS read those values at build time which can’t be changed once the project is already built. In this project I use Pages router.