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
Chaika
Chaika2d ago
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
OakyLabs
OakyLabsOP2d ago
@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?
Chaika
Chaika2d ago
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
OakyLabs
OakyLabsOP2d ago
@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 ?
Chaika
Chaika2d ago
You can then add Worker Routes or Worker Custom Domains to it, yea
OakyLabs
OakyLabsOP2d ago
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:
Hostname 'mydomain.pt' already has externally managed DNS records (A, CNAME, etc). Either delete them, try a different hostname, or use the option 'override_existing_dns_record' to override.
Hostname 'mydomain.pt' already has externally managed DNS records (A, CNAME, etc). Either delete them, try a different hostname, or use the option 'override_existing_dns_record' to override.
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
Chaika
Chaika2d ago
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 you
OakyLabs
OakyLabsOP2d ago
Exactly. I added both the main domain and the www But it seems like I also need to edit the wrangler.toml to add these?
Chaika
Chaika2d ago
The toml is the source of truth, so yea you'd want to replicate those back to it before next publish overrides
OakyLabs
OakyLabsOP2d ago
So edit the routes section in the toml is that it?
Chaika
Chaika2d ago
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...
OakyLabs
OakyLabsOP2d ago
How long does https take to propagate? The domain is up but it’s still in http
yurie
yurie2d ago
Propetgations normally takes 1-2 hours maximum but up to 24. my .st domain took about 5 hours less than 2 weeks ago

Did you find this page helpful?