TW
CDCloudflare Developers
•Created by TW on 1/5/2025 in #workers-help
Cloudflare Custom Hostname a.k.a. Cloudflare for SaaS does not support punycode / emoji domain name
As per title. Is this a bug or expected? Any workaround? Since some of our clients use punycode.
4 replies
CDCloudflare Developers
•Created by TW on 1/3/2025 in #workers-help
Cloudflare for SaaS
My SaaS, saas.com, allows users to pick a subdomain from a list of predefined domains (a.com, b.com, and dozens more). They can also bring their own domain. In other words:
1.
*.saas.com
is only used for the SaaS—no UGC (user-generated content)—e.g. the root is for the homepage, while help.saas.com for knowledge base.
2. a.com
/b.com
redirects to saas.com a.k.a the homepage. Someday they might have their own landing page instead of redirecting.
3. *.a.com
and *.b.com
are for users. They can pick anything e.g. bla.b.com
as long as it's available, not used by other users.
4. They can also bring their own domain, e.g. sub.myco.com
.
5. They can also choose nothing. Which means their UCG will be available from the root of a.com/b.com, e.g. a.com/my-ucg
. This is the default.
Given those requirements, my first question: Where should I enable the "Cloudflare for SaaS" feature? In saas.com? Or in either a.com/b.com?
FYI, saas.com
, a.com
and b.com
are all managed in Cloudflare under one account (e.g. [email protected]).6 replies
CDCloudflare Developers
•Created by TW on 8/2/2024 in #workers-help
Quick question re: Browser Rendering limit and Queues max_concurrency
I understand that there's a limit of 2 concurrent browsers per account (https://developers.cloudflare.com/browser-rendering/platform/limits/). Since I'm doing rendering inside a Queue, it makes sense that I set its max_concurrency to 2. But looking at the log, all my tasks keep (re)using 1 browser instance.
My question: If I set my queue's max_concurrency to >2 (say, 5), what will happen if there's already 2 concurrent browsers running? Will the rest wait, or simply crash?
1 replies
CDCloudflare Developers
•Created by TW on 7/30/2024 in #workers-help
Upload Cloudflare Image from Workers?
It's not obvious from https://developers.cloudflare.com/images/upload-images/ how to upload images from a Worker. Is it by URL? Considering other services have bindings, I'm thinking there might be something similar for Image.
2 replies
CDCloudflare Developers
•Created by TW on 5/25/2024 in #workers-help
Validating JWT in Cloudflare Pages (CF's tutorial doesn't work when deployed)
I'm following https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/ (JavaScript). I understand it's for Express, but I've removed the Express parts and adjusted it for SvelteKit to be deployed in Cloudflare Pages. But when deploying I got this error:
According to https://github.com/cloudflare/workers-sdk/issues/3351 and https://community.cloudflare.com/t/possible-to-set-node-compat-on-pages-functions/448593, they're simply not supported.
What should I do?
2 replies