How can I get the localePath() from Nuxt 3 server?
// server/api/[...].ts
export default NuxtAuthHandler({
// The secret is used to encrypt the JWT token
secret: useRuntimeConfig().auth.secret,
// Redirects to this page if the user is not authenticated
pages: {
// * How to get the locales Path and return?
signIn: '/zh-TW/auth/', // '/en-US/auth/'
},
....
As i18n can only be used in Nuxt3 but not the Nitro. What can I do to redirect a path with the locale path from server to frontend?