I'm using Zeit service to host my Next.js Application because it's easy to maintain and deploy.
First, just run this command(now-cli is required for this)
nowcommand done you will get the deployment URL. that URL changed every time when you make a new deploy. So, this way your production application will not affect. that mean alias is not assigned to the latest deployment URL. Cool!!!
So, if you seem that latest deployment is good to go on production then you just have to assign the alias to this deployment URL.
now alias <deployment URL> <domain>like this:
now alias dailyhack-3c1tmk4cu.now.sh dailyhack.xyz