When aliasing a build, all domains are updated.
Unanswered
JeffBaumgardt posted this in #help-forum
I have 4 domains, unfortunately all set as production as I don't have 4 branches that I want to manage separately.
* app.domain.com
* app.qa.domain.com
* app.stage.domain.com
* app.dev.domain.com
If I use cli to build and deploy I see the build go up and deploy to a preview url.
If I alias that preview url to app.dev.domain.com then everything is good. I see the domain listed on the deployment.
However, if I do an alias to app.domain.com all 4 domains are updated. I have no idea why. I'm trying to (Github Action/ Bitbucket Pipeline), build and deploy my builds. I do some environment key updates and the resulting deployments look great. It's just the one domain alias for some reason ends up going to all 4.
* app.domain.com
* app.qa.domain.com
* app.stage.domain.com
* app.dev.domain.com
If I use cli to build and deploy I see the build go up and deploy to a preview url.
If I alias that preview url to app.dev.domain.com then everything is good. I see the domain listed on the deployment.
However, if I do an alias to app.domain.com all 4 domains are updated. I have no idea why. I'm trying to (Github Action/ Bitbucket Pipeline), build and deploy my builds. I do some environment key updates and the resulting deployments look great. It's just the one domain alias for some reason ends up going to all 4.
1 Reply
Commands:
vercel build --token=$VERCEL_TOKEN
PREVIEW_URL= $(vercel deploy --prebuilt --skip-domain --token=$VERCEL_TOKEN --scope=cool-team-name)
vercel alias $PREVIEW_URL app.domain.com --token=$VERCEL_TOKEN --scope=cool-team-name