Tobi Kremer
Tobi Kremer
Just ran into this as well. No fix yet, not even an acknowledgement. Having to deal with these kinds of issues with every patch- or minor-level Next.js upgrade is getting...
This just goes to show that people are losing faith in Vercel and Next.js, IMHO. If we can't use the features a framework provides out of fear they might break...
Actually, I think @smessaris is right: `/` is also **excluded** when using the expression `'/((?!api|_next/static|favicon.ico).*)'` from your example, @balazsorban44. To have the middleware match `/` and everything except `api|_next/static|favicon.ico` you...
Ok, it seems like the types for `URLSearchParams` correctly don't directly accept `FormData`, so this only works in plain JS: https://github.com/microsoft/TypeScript/issues/30584 So some other fix is needed.