#Redirect loop

3 messages · Page 1 of 1 (latest)

covert swallow
#

Hello, recently we refactored our app and switched to Next JS. Currently we are testing it on our client's test env and we encountered a redirect loop.
We are using middleware and a base path change but even without these two, the redirect loop happens.
Previously we were using Nginx (for context path since client requested app to be under <domain>/app) and serving it as static files (Vite) and we had no issue.
We still need to keep <domain>/app as a homepage for our app.
Worth noting, client has it's own proxy that redirects user to SSO and back to our app.
Any idea what may be happening, any guidance?
Thank you.

EDIT: Forgot to mention that we are not using Nginx anymore.

gleaming girderBOT
#

🔎 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)

mint leaf
#

could you post the code of your middleware?