Hey guys! First of all, what a great product you guys have built here. Wonderful stuff and it has been really fun experimenting and doing stuff that I thought I could never do.
So my issue is related with Custom Domains. I’ve set up a custom domain in one of my projects. If I go to Settings > Domains in the project, the domain is there with a blue checkmark on both Valid Configuration and Assigned to Main. All good, no errors messages.
However, every time I try to push a deploy through v0 in my project, I get the random vercel link and not the custom domain at all. In order to deploy my current build to the custom domain I’ve set previously, I’ve got to go back to the vercel’s project again, go to Deployments and after I deploy the first time to the random vercel link, I need to Redeploy and only then it gets deployed to my custom domain.
I don’t really know if I’m missing anything because I get no errors, nothing that says I’m doing something wrong with that custom domain.
Wondering if I could get some help in this matter.
I’m glad you’re enjoying v0 and Vercel, @joaoferreiraphoto! Custom domains can be tricky, but I have an idea about what’s happening in this case.
When you set a custom domain, it’s typically applied to the production environment and automatically updated to keep up with the latest production deployment.
When v0 makes a new deployment, it goes into a staged environment so you can review it before promoting it to production. You can approve the change by clicking “Promote” on the deployment details page.
All you should need to do is Promote the deployment if the domain is already added in Project Settings. The v0 popup shows the unique deployment URL until you promote it to production. After you promote it, the custom domain should appear in the v0 popup.
Future deployments will need you to review and promote deployments before the custom domain is used. Within v0, you can use the “Set a custom domain” option to manually add the domain.
I’ll share your feedback with the v0 team so we can make this easier in the future!