mirror of https://github.com/kortix-ai/suna.git
try this2
This commit is contained in:
parent
e50cb4008f
commit
1c9bb5e817
|
@ -1,7 +1,4 @@
|
||||||
'use client';
|
import { redirect } from 'next/navigation';
|
||||||
|
|
||||||
import { useEffect } from 'react';
|
|
||||||
import { useRouter } from 'next/navigation';
|
|
||||||
|
|
||||||
// Set all dynamic options to prevent prerendering
|
// Set all dynamic options to prevent prerendering
|
||||||
// export const dynamic = 'force-dynamic';
|
// export const dynamic = 'force-dynamic';
|
||||||
|
@ -11,17 +8,5 @@ import { useRouter } from 'next/navigation';
|
||||||
// export const runtime = 'edge';
|
// export const runtime = 'edge';
|
||||||
|
|
||||||
export default function PersonalAccountPage() {
|
export default function PersonalAccountPage() {
|
||||||
const router = useRouter();
|
redirect('/dashboard');
|
||||||
|
|
||||||
// Use client-side navigation instead of server redirect
|
|
||||||
useEffect(() => {
|
|
||||||
router.replace('/dashboard');
|
|
||||||
}, [router]);
|
|
||||||
|
|
||||||
// Return a minimal loading state until redirect happens
|
|
||||||
return (
|
|
||||||
<div className="flex items-center justify-center min-h-screen">
|
|
||||||
<div className="w-8 h-8 border-2 border-primary rounded-full border-t-transparent animate-spin"></div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue