Domain branch assignment not working as it should

Expected behaviour

dev.domain.net shows the full site, meant for developer testing only. This is located on the ‘vite-prototype’ branch of the gh repo
domain.net shows a coming soon landing page. This is located on the ‘coming-soon’ branch of the gh repo.

Current behaviour

The public-facing domain.net and www.domain.net show the full site, instead of the landing page which is on the ‘coming-soon’ branch.

Code, configuration, and steps that reproduce this issue

In project>settings>domains the domain.net redirects to www.domain,net, which is assigned to the ‘coming-soon’ branch and is in the pre-production environment. The dev.domain.net is assigned to the ‘vite-prototype’ branch.

In project>settings>environments all domains (domain.net, www.domain.net and dev.domain.net) are set to the Production environment which the branch tracking says ‘vite-prototype’

As a result, the public-facing domain.net and www.domain.net show the full site instead of the landing page which is on the ‘coming-soon’ branch

Project information (URL, framework, environment, project settings)

Vite + React
Bog standard css (no Tailwind or Postcss etc.)

Vercel hobby account

Cloudflare domain

The domain troubleshooting guide can help with most custom domain configuration issues. You might be able to use that guide to solve it before a human is available to help you. Then you can come back here and share the answer for bonus points.

You can also use v0 to narrow down the possibilities.

SOLVED

Turns out I needed to submit a commit to the coming-soon branch to refresh something on vercel’s end. Now it works as intended.

3 Likes

Thanks for sharing the solution @kingcharlesvi! See you around in the community.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.