Simple Worker Not Working
Hi everyone, I’m having trouble getting a basic Cloudflare Worker to work after deployment. Here’s what’s happening:
When I test it locally using wrangler dev, it works perfectly fine and returns the expected response.
However, after deploying it using wrangler publish, it doesn’t work on the .workers.dev subdomain and gives me a 404 error instead.
Here’s what I’ve checked so far:
Deployment ran without errors (wrangler publish).
The Worker shows up in my Cloudflare dashboard.
Logs (wrangler tail) don’t show any runtime errors, and the script outcome is listed as "ok."
What’s confusing is that I have an older Worker deployed with the same setup (same wrangler.toml configs, no custom domains), and it works perfectly fine on its .workers.dev subdomain.
Am I missing something obvious? Is there a recent change or something I might have overlooked?
I’d appreciate any help or suggestions! Thanks in advance! 😊
0 Replies