Next.js internationalized site error - Too many redirects

I don’t think this is a Netlify issue. Looks like you’re deliberately causing this issue through your code. For example, I can see you’re checking for defaultLocale, which based on your code is ca. en is not the default, but a valid locale, so I simply tried visiting: 500: Internal Server Error (visionary-beignet-9da304.netlify.app) and it works fine. It gets a HTTP 500 error which is being discussed here: Server.edge not defined Error on nextJS SSR functions cause site to return 500 Errors.

But about the too many redirects, you’re redirecting from / to /ca: internationalized-test/middleware.js at main · marnauortega/internationalized-test (github.com). Then it runs the middleware again and then it checks internationalized-test/middleware.js at main · marnauortega/internationalized-test (github.com) again. This cycle continues over and over.