首页 > 代码库 > [NodeJS] Use Now alias for custom sub-domains

[NodeJS] Use Now alias for custom sub-domains

Now is a great way to deploy your node application, but the generated URLs aren‘t memorable or easily remembered. With Now‘s alias command, you can fix that. In this video lesson we‘ll cover how to add an alias to a deployment, giving you a custom *.now.sh subdomain, how to create an alias using your own custom domain name, how to list your aliases and finally how to remove an alias if you no longer want it.

 

// List Deploymentsnow ls// Create an aliasnow alias <DEPLOYMENT ID> <ALIAS VALUE>// List Aliasesnow alias ls// Remove an Aliasnow alias rm <ALIAS ID>

 

[NodeJS] Use Now alias for custom sub-domains