Next.js Discord

Discord Forum

NextJS on Vercel behind Cloudflare proxy

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
I have deployed a NextJS project on Vercel and wish to assign a domain to it. The domain DNS is controlled by Cloudflare, and I wish to use Cloudflare proxy - to gain all of these advantages of this.

However, when the proxy is enabled, Vercel doesnt recognize the DNS as pointing to them (which makes sense - it doesnt), but there is no way to overrule this - a checkbox with "its okay, i got this".

Another problem I have is that my main branch, when i try to assign it to the domain, it says that Production branches cannot be assigned to Preview domains. But its not a preview domain - its my main domain.

Thanks in advanc !

2 Replies