Next.js Discord

Discord Forum

Can you have a non-Production domain?

Unanswered
Skipjack tuna posted this in #help-forum
Open in Discord
Skipjack tunaOP
Hello, I was wondering if I can have a non-Production domain? When I make preview deployments I manually alias them to a domain with the CLI, but then when I make a prod deployment the prod deployment will use my prod domain, but also override the alias I made previously since all my domains are marked production...

The reason behind this is because I use preview as a testing/dev environment before pushing to production.

Right now my workaround is doing my prod deployment, then redoing my preview deploying with the alias.

2 Replies

Yes. You can simply add another domain for non-prod branches
Skipjack tunaOP
Thanks!

We do everything via CI though and don't connect our repo directly to Vercel so sadly this is not an option.