Configure a single route to not include trailing slash
Unanswered
Saltwater Crocodile posted this in #help-forum
Saltwater CrocodileOP
My site is configured to include a trailing slash, as set in
next.config.js file. But now I need to exclude a trailing slash for a single route as part of a reverse proxy configuration. I've tried using a combination of rewrites and redirects and middleware logic, but I seem to either end up in a redirect loop or I still get a trailing slash.1 Reply
Saltwater CrocodileOP
The other portion of this is that when I do successfully get the manual redirect to include a trailing slash, any request to
/_next/data ends up in a loop