ASK
ASK
CDCloudflare Developers
Created by ASK on 2/12/2024 in #workers-help
Need to make a url load html page in worker with path
I have a URL in cloudflare, say https://domain.com. My use case is pretty simple. When I hit this URL, it should load the contents of a worker https://test.workers.dev/page (NOT REDIRECT, just proxy url). And also the path should be preserved with the original url. I don't want to hardcode anything in the worker since I prefer this to be scaled for each page. Tried Cloudflare for SaaS but no result (probably couldn't figure out a way to use it right). Any help would be greatly appreciated. Cheers!
2 replies
CDCloudflare Developers
Created by ASK on 10/27/2023 in #workers-help
Show worker page on going to custom domain
Hey guys, I have a worker at https://test.workers.dev/page. I also have a custom domain https://domain.com. Whenever I hit the custom domain URL, I need to show the content of the worker page mentioned above. The case is I don't want to add domain to cloudflare but I can add any CNAME or some other records into my registrar where I bought the custom domain. Any solutions for the above situation?
7 replies
CDCloudflare Developers
Created by ASK on 10/18/2023 in #workers-help
KV giving null while doing get even though the key exists
There is no error from KV and also there is no response with correct value.
22 replies
CDCloudflare Developers
Created by ASK on 8/29/2023 in #workers-help
Custom domain should trigger worker path
Hey guys! I have a specific requirement which I couldn't find anywhere in the web or perhaps I missed it even if it is in front of me but here it goes. I have a custom domain, say https://domain.com. I have a worker hosted and a custom path in it, say https://test.workers.dev/page1. My requirement is whenever someone goes to my custom domain, it has to trigger the worker at the said URL and return that webpage. Any comment/help would be great. Cheers!
5 replies