I would like to, as the title suggests, not run the worker on specific URLs, like scripts, css, function files. I have found a few questions that also ask about this and the answers seem to show a user interface that isn’t available anymore. They suggest creating the URL and then disabling the worker on that URL but I do not see that as an option currently.
Can anyone offer any assistance?
A route can be specified without being associated with a Worker; this will act to negate any less specific patterns. For example, consider this pair of route patterns, one with a Workers script and one without:
*example.com/images/cat.png -> <no script>
*example.com/images/* -> worker-script
See Routes and domains · Cloudflare Workers docs
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.