Do you already have a Record (CNAME or A

Do you already have a Record (CNAME or A... whatever) for www subdomain pointing somewhere else? If so it wont let Wrangler override that and automagically create one. Also I havent checked but I am not sure that override_existing_dns_record exists on Wrangler config (could be wrong) it might be referring to the API
4 Replies
stu
stu•6d ago
Thanks for the response! Not trying to hijack the wrangler thread for DNS issues. I do believe that override_existing_dns_record is an existing property in wrangler, which is why I brought it up. It just doesn't seem to work, at least in my case. In terms of my specific case, I did add a rule to route non-www to www, I can try removing that. Also, I tried the pattern of just my-site.com (no www), but was giving me the same error. And I'm a bit unsure which DNS records I need to clear out to get this working. Created a thread specifically for this at https://discord.com/channels/595317990191398933/1360897401463902288.
No description
JacobMGEvans
JacobMGEvansOP•6d ago
Couldnt find the override property in the schema https://unpkg.com/[email protected]/config-schema.json or Docs https://developers.cloudflare.com/workers/wrangler/configuration/#routes That being said, it very well could be undocumented. As for trying it without the www, did you manually set up records for the subdomain? https://developers.cloudflare.com/workers/configuration/routing/custom-domains/#add-a-custom-domain If the domain has existing CNAMEs the automagic wont work, hope the docs can be of more help than me 😅
stu
stu•6d ago
Regarding the www, there is a "Rules" section where I added two template rules. One Redirect from HTTP to HTTPS [Template] URI Full wildcard r"http://*" 301 redirect and Redirect from Root to WWW [Template] URI Full wildcard r"https://<my-domain>.com/*" 301 redirect . And it seems like when I navigate to the DNS area, it has like
CNAME
www
<my-domain>.com
Proxied
CNAME
www
<my-domain>.com
Proxied
Maybe those rules I previously setup are interfering with the wrangler routes
JacobMGEvans
JacobMGEvansOP•6d ago
Maybe, I dont remember how rules work under the hood and havent used them in a long time. If they utilize CNAMEs then yes likely are interferring

Did you find this page helpful?