ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
8 replies
Original Authority

How to deploy worker?

I'm probably being a bit stupid here, but I'm really new to Workers, having been using page rules before (looking for a bit more flexibility on cookie bypass etc, and don't want to shell out for enterprise/business).

I have a Worker script (pastebin for anyone interested: https://pastebin.com/5kUGaL2S) that I think does what I need (bypass on certain cookies etc), and I've tried to set it up, but I'm having a bit of difficulty getting it to actually work. Basically, I have a domain (domain.com, redacted in the script) and several subdomains (.domain.com, wildcard), and I need the worker to be the one to intercept the request and then pass it to the server if it can't be served from the cache.

I've done the following:
- saved and deployed
- added a route for domain.com with the zone domain.com
- added a route for *.domain.com with the zone domain.com,

but it doesn't seem to be actually working (I can tell because my worker should be logging the start time to the console), am I being really stupid, or? Does anyone know what I'm doing wrong?

Oddly enough, I can see 1.2k requests when I look at the worker?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Workern to worker fetch 1042
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago
How to wrangler deploy a dev worker?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker deploy issues?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
How to have worker auto deploy specific environment?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago