diff --git a/chatdesk-ui/app/[locale]/setup/page.tsx b/chatdesk-ui/app/[locale]/setup/page.tsx index 03cd57d..fea06ea 100644 --- a/chatdesk-ui/app/[locale]/setup/page.tsx +++ b/chatdesk-ui/app/[locale]/setup/page.tsx @@ -96,7 +96,8 @@ export default function SetupPage() { useEffect(() => { ;(async () => { - const session = (await supabase.auth.getSession()).data.session + const supabaseClient = await supabase(); // Await the client creation + const session = (await supabaseClient.auth.getSession()).data.session if (!session) { // 强制跳转到带有 locale 的 login 页面