I want to create a redirect for all subroutes /a, /b, /c but not /api.
So my basic setup looks like this:
{
source: '/:path*',
destination: 'https://otherdomain.com/:path*',
permanent: false
}
What do I have to change to stop redirecting /api/* from here?
I tried some hacks like :path(?!api$)* but none of them are working.