Workers route, how to match a specific part of the URI path ?

Hello, I'm trying to create a route that will match all URI containing /a/ : https://www.example.com/nimp/a/test.html seems like * example.com/ * /a/ * is not supported (adding spaces to avoid discord automatic formatting)
3 Replies
Walshy
Walshy3w ago
This isn't something supported today You'll need to match /nimp/a/* or if you don't know the before part just /*
RavenLame
RavenLameOP3w ago
thanks @Walshy | Workers/Pages for your confirmation ! The problem is that this is for a customer who is testing workers, they can't send all their traffic to the workers as they will be above the free threshold. I suggest them to use a Snippet instead of a worker to test their script and being more flexible thanks to Snippet rules
Walshy
Walshy3w ago
Yep Snippets are a great solution!

Did you find this page helpful?