This commit is contained in:
parent
ec642b06b6
commit
cac7aebd03
|
|
@ -140,14 +140,14 @@ export default async function RootLayout({
|
|||
// const session = (await supabase.auth.getSession()).data.session
|
||||
const { data, error } = await supabase.auth.getSession();
|
||||
if (error) {
|
||||
console.log("............[layout.tsx]Session Error: ", error);
|
||||
console.log("[layout.tsx]............Session Error: ", error);
|
||||
} else {
|
||||
console.log("............[layout.tsx]Session Data: ", data.session);
|
||||
console.log("[layout.tsx]............Session Data: ", data.session);
|
||||
}
|
||||
|
||||
const { t, resources } = await initTranslations(locale, i18nNamespaces)
|
||||
|
||||
// console.log("layout.tsx..............locale: ", {locale});
|
||||
console.log("[layout.tsx]..............current locale: ", {locale});
|
||||
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
|
|
|
|||
|
|
@ -192,10 +192,7 @@ export const GlobalState: FC<GlobalStateProps> = ({ children }) => {
|
|||
const targetPath = `${homePath}/setup`
|
||||
|
||||
// console.log("[global-state.tsx]-------------", targetPath)
|
||||
|
||||
|
||||
router.push(targetPath)
|
||||
|
||||
// return router.push(`${homePath}/setup`)
|
||||
// return router.push(`/${locale}/setup`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue