This commit is contained in:
hailin 2025-04-22 22:26:51 +08:00
parent ec642b06b6
commit cac7aebd03
2 changed files with 3 additions and 6 deletions

View File

@ -140,14 +140,14 @@ export default async function RootLayout({
// const session = (await supabase.auth.getSession()).data.session // const session = (await supabase.auth.getSession()).data.session
const { data, error } = await supabase.auth.getSession(); const { data, error } = await supabase.auth.getSession();
if (error) { if (error) {
console.log("............[layout.tsx]Session Error: ", error); console.log("[layout.tsx]............Session Error: ", error);
} else { } else {
console.log("............[layout.tsx]Session Data: ", data.session); console.log("[layout.tsx]............Session Data: ", data.session);
} }
const { t, resources } = await initTranslations(locale, i18nNamespaces) const { t, resources } = await initTranslations(locale, i18nNamespaces)
// console.log("layout.tsx..............locale: ", {locale}); console.log("[layout.tsx]..............current locale: ", {locale});
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>

View File

@ -192,10 +192,7 @@ export const GlobalState: FC<GlobalStateProps> = ({ children }) => {
const targetPath = `${homePath}/setup` const targetPath = `${homePath}/setup`
// console.log("[global-state.tsx]-------------", targetPath) // console.log("[global-state.tsx]-------------", targetPath)
router.push(targetPath) router.push(targetPath)
// return router.push(`${homePath}/setup`) // return router.push(`${homePath}/setup`)
// return router.push(`/${locale}/setup`) // return router.push(`/${locale}/setup`)
} }