Single build, multiple environments
Unanswered
Himalayan posted this in #help-forum
HimalayanOP
Hi all. I have a client who will be deploying my Next app on Azure. They want to use the same build artifact on all environments (dev/staging/prod). The problem with this is that the backend API base URL differs between the 3. If we were able to build distinct artifacts for each env, then this would not be a problem, but with a single artifact, I'm not sure how to go about doing this. I'm hoping this isn't too Azure specific, as I'm hoping the solution (if there is one) will be at the Next end.
Does anyone know how to, with a single build artifact, make use of different values for what I'm guessing will be environment variables in the distinct server hosting environments?
Thanks! 🙂
Does anyone know how to, with a single build artifact, make use of different values for what I'm guessing will be environment variables in the distinct server hosting environments?
Thanks! 🙂