I was running Spotlight by Sentry in the background on PORT 8969 for error tracking. However, this setup caused errors when handling redirects in Next.js. I didn’t investigate the issue in depth, but everything works fine now after turning it off.