Since its early days, Now has provided the concept of environments: Every change to your codebase leads to a unique URL which is used for staging. In order to move something to production, you would then assign an alias to it.
Today, we are making these two processes much more straightforward by introducing Automatic Aliases, alongside a new --target option for Now CLI.
Going forward, if you run now without any additional arguments, you will be presented with a slightly different output:
~/deck now > Deploying ~/deck under zeit > Using project deck >https://deck-ib06dctig.now.sh[v2] [2s] ┌deck.mdx Ready [38s] ├── index.html (5.08KB) └── main.js (295.94KB) > Ready! Aliased to https://deck-andyschneider.zeit.now.sh[3s]
The example above creates a mdx-deck deployment within a team.
Unlike before, the message at the end now contains a second URL; an alias of the deployment. This alias is automatically assigned to all of your deployments and varies depending on your project name, username, and team name.
Users outside a team receive an even shorter address per deployment:
~/deck now > Deploying ~/deck under andyschneider ... > Ready! Aliased to https://deck.andyschneider.now.sh[3s]
If you want to allow someone to keep track of your updates to a project, this URL is the perfect fit. No need to share a new URL every time you deploy a change, or remember to alias each change manually.