nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
937 stars 53 forks source link

[Feature]: Custom preview domains #169

Open IsraelOrtuno opened 3 months ago

IsraelOrtuno commented 3 months ago

Is your feature request related to a problem? Please describe. As of now, there's no easy way to set up custom domains for preview deployments except doing it from the CF dashboard, which is also not straight forward and you have to rely on docs. It's basically a CNAME record pointing to [branch].[project].pages.dev and the domain has to be added to the project too: https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/

Describe the solution you'd like It would be so great if this could be done through the dashboard. Settings > Domains show all domains bound to the project but you don't know which one resolves what (production / preview).

image
atinux commented 3 months ago

Thanks for creating the issue @IsraelOrtuno

Indeed we need to find a better way to support linking a domain to a specific branch as well as listing those.

Moving this issue into the backlog :)