Cloudworkers regex in routes config


How to create dynamic patterns with regex in route configuration under cloud workers edit route configuration.

URL which contains file extension should not come under workers configuration, how .?

For ex: -> Workers should not apply on this pattern.

Routes do not seem to support regular expressions, only regular wildcards

1 Like

As @sandro said they don’t apply. You can do as many routes as you want and then filter out things inside the worker itself. You would incur in the execution cost, but they are extremely cheap to run.

There was a way to exclude certain routes, but I can’t seem to find it after the update they did with multi-script support. Maybe @signalnerve can shed some light there.

Thanks guys.