vercel / platforms

A full-stack Next.js app with multi-tenancy and custom domain support. Built with Next.js App Router and the Vercel Domains API.
https://app.vercel.pub
5.38k stars 689 forks source link

Branch preview #294

Closed adamchipperfield closed 7 months ago

adamchipperfield commented 10 months ago

Is it possible to get this working with branch preview URLs? So sub-domain.project-git-feature-branch.vercel.app, where sub-domain is what the user has set as their subdomain.

If I try this I get SSL issues, as if Vercel can't handle wildcard subdomains on branch previews.

sharshi commented 10 months ago

I get 404's on all preview links - not sure what the correct setup besides enabling wildcard domains. I feel like there might be some sort of conflict because of the NEXT_PUBLIC_ROOT_DOMAIN setting being different to vercel.app.

lukasburns commented 9 months ago

Any luck with this so far?

goussaka-salah commented 8 months ago

is there any update regarding this

steven-tey commented 7 months ago

Hey everyone! That's possible with Preview Deployment Suffixes – we recently added a section on this in the guide: https://vercel.com/guides/nextjs-multi-tenant-application#3.-multi-tenant-preview-urls

CleanShot 2023-11-14 at 10 58 13

It's currently in beta for Enterprise teams on Vercel, but we're planning to open this up to more customers in the future. Stay tuned!