refactor: moving locale definition

This commit is contained in:
2024-02-16 17:02:33 +01:00
parent 8992aa76bd
commit 3240f746d1
3 changed files with 6 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ import NextAuth, { NextAuthConfig } from 'next-auth';
import GoogleProvider from 'next-auth/providers/google';
import { Session } from 'next-auth';
import { AuthenticatedUser } from './types/next-auth';
import { defaultLocale } from '../i18n';
export const authConfig: NextAuthConfig = {
callbacks: {
@@ -46,7 +47,7 @@ export const authConfig: NextAuthConfig = {
strategy: 'jwt'
},
pages: {
signIn: '/en/login',
signIn: `/${defaultLocale}/login`,
},
};