I’m currently using a worker and need to bypass amp pages. The proper way to do this should be with a negate route, but it seems like it is impossible to do so using route patterns.
The worker route I need should look like this:
Unfortunately, as per the worker documentation, wildcards can only be used at the beginning or end of the worker route, making this route impossible.
The error message I get is the following:
Route pattern may only contain wildcards at the beginning of the hostname and the end of the path: www.website.com/*/amp/
If anyone has a suggestion on how I could do this, please share away.
Otherwise, would it be possible to have more flexibility regarding wildcards for worker routes ?