Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workers support to use SSL for SaaS #267

Open
timhanlon opened this issue Sep 7, 2024 · 2 comments
Open

Workers support to use SSL for SaaS #267

timhanlon opened this issue Sep 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@timhanlon
Copy link

Is your feature request related to a problem? Please describe.
SSL for SaaS is not compatible with Cloudflare Pages, which is a blocker to doing SaaS with custom user domains on Nuxt Hub.

Describe the solution you'd like
The ability to deploy Nuxt Hub apps using module format Workers instead of Pages.

Describe alternatives you've considered
The only workaround I'm aware of is setting up a Worker for the fallback origin which proxies requests to Pages, however I'm getting D1_TYPE_ERROR when using D1 in API routes on the proxy. The only workaround I've found there is directly hitting the API routes on the domain which is assigned to Pages, which isn't ideal.

@atinux atinux added the enhancement New feature or request label Sep 9, 2024
@atinux
Copy link
Contributor

atinux commented Sep 9, 2024

If I understand properly @timhanlon, you want the ability to set multiple custom domain for a project?

On Pages, I can do this and the customer only have to set the CNAME on his DNS (expect for APEX).

I am happy to better understand what you are building to better serve your purpose!

@timhanlon
Copy link
Author

Ah, I wasn't aware that external domains on Pages was an option.

Couple of things:

  • This requires the customer to CNAME to mysaas.pages.dev rather than customers.mysaas.com
  • SSL for SaaS is $0.10 per domain once you've reached 100 domains, which is much less expensive & restrictive than Pages custom domain limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants