jorge-menjivar / unsaged

Open source chat kit engineered for seamless interaction with AI models.
https://unsaged.com
Apache License 2.0
248 stars 77 forks source link

Infinite redirect loop after google login #47

Closed diegosc78 closed 11 months ago

diegosc78 commented 1 year ago

I've followed the 7 steps in readme, mapping a /etc/host dns name for the application and using it in .env.local

Any clue?

jorge-menjivar commented 1 year ago

Hmm, it looks like an issue with language configuration. It seems like it is trying to go to the Spanish version of the site, which isn't there. I will need to look into it a bit more.

diegosc78 commented 1 year ago

Thank you very much. I changed browser language preferences to english and it worked. I'll dig a bit to guess how to extend or configure your code for adding new languages or jumping to a default language if it doesn't find browser one. Thanks again

jorge-menjivar commented 1 year ago

The project was previously using https://github.com/i18next/next-i18next to support multiple languages. However they do not support the new NextJS app dir so it had to be dropped.

Going forward it would probably be best to stick with the default NextJS implementation documented here https://nextjs.org/docs/app/building-your-application/routing/internationalization or a tool built on top of that