I bought a domain with a TLD that cloudflare does not yet support
I bought a
.pt
domain and i have been building my app to deploy to workers. Is it me, or is this, as of now, impossible?
.pt
domains are not yet supported by cloudflare registrar, so how can i deploy workers to this domain?13 Replies
It doesn't matter if Registrar doesn't support it, you can just add it under Websites and use all normal services. Just has to be an ICANN TLD/or the Public Suffix List
@Chaika thank you for the quick response. but dont I need to bring in a domain "inside" of cloudflare in order to use that domain with workers? or am i wrong?
Registrar is a completely optional service meant to be an addon for existing customers.
All you have to do is use Cloudflare's DNS services/change nameservers to Cloudflare. You can keep the domain at your current registrar.
There's technically options to use Workers without that (CF For SaaS), but they get more complex/require at least one domain in cF anyway
@Chaika let me see if i can do this and get back to you
i think i just changed the nameservers. now i need to wait. ill get back to you asap
correct me if im wrong then, provided this new domain is under the
Websites
part and the nameservers are good to go, I should be able to assign cloudflare workers domain to this domain? @Chaika ?You can then add Worker Routes or Worker Custom Domains to it, yea
perfect. then ill wait for the propagation and check it back in a couple hours. thanks
@Chaika i got an error with the following text:
My understanding, even though the dns is being maintained by cloudflare it still is missing something?
the domain is being proxied by cloudflare. again, i couldnt move the domain to cloudflare
i added a custom domain, but dont i now need to setup A records or CNAME records? @Chaika
You just have a record in there, in Cloudflare
also it looks like it's trying to add your worker at your apex/root hostname, not at a subdomain, intended?
If you used the Custom Domain option, it should have made a
Worker
record for youExactly. I added both the main domain and the www
But it seems like I also need to edit the wrangler.toml to add these?
The toml is the source of truth, so yea you'd want to replicate those back to it before next publish overrides
So edit the
routes
section in the toml is that it?https://developers.cloudflare.com/workers/configuration/routing/custom-domains/#set-up-a-custom-domain-in-your-wranglertoml--wranglerjson-file
Yup but make sure to set custom domain flag if using them and their format
Cloudflare Docs
Custom Domains · Cloudflare Workers docs
Custom Domains allow you to connect your Worker to a domain or subdomain, without having to make changes to your DNS settings or perform any certificate management. After you set up a Custom Domain for your Worker, Cloudflare will create DNS records and issue necessary certificates on your behalf. The created DNS records will point directly to y...
How long does https take to propagate? The domain is up but it’s still in http
Propetgations normally takes 1-2 hours maximum but up to 24. my .st domain took about 5 hours less than 2 weeks ago