Hi 👋 do you know how to combine Supertokens and N...
# support-questions-legacy
u
Hi 👋 do you know how to combine Supertokens and Nextjs when internalizationed routing (https://nextjs.org/docs/advanced-features/i18n-routing) is used? 🙂 For the moment, I can only use the path
my.domain.local/auth
while I would like to use also
my.domain.local/[lng]/auth
(*e.g. *`my.domain.local/fr/auth`) but also
my.domain.local/auth
(default route) in an automatic way as NextJS does when using the intl routing feature.
r
hey @ベニマル
this is possible by disabling all of our default UIs and instead embedding them on the relevant routes. See the section in our docs about embedding our default UI.
u
Great, thanks for your help 🙂
r
on the backend you would also wan to override the sendEmail functions to change the path of the email verification / password reset links to point to the right path.
based on the language setting
11 Views