#Configure a single route to not include trailing slash

2 messages · Page 1 of 1 (latest)

crystal crest
#

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.

grizzled kindleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)