10 months ago

Next.js Application Deploy on Zeit

I'm using Zeit service to host my Next.js Application because it's easy to maintain and deploy.

  1. First, just run this command(now-cli is required for this) now

  2. When now command 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!!!

  3. 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

that's all.

Do you have any comment on this tricks? then let the author know about that. comment here