2025-04-18 06:49:07 +08:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
import { useEffect } from 'react';
|
|
|
|
import { useRouter } from 'next/navigation';
|
|
|
|
|
|
|
|
// Set all dynamic options to prevent prerendering
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export const dynamicParams = true;
|
|
|
|
export const revalidate = 0;
|
|
|
|
export const fetchCache = 'force-no-store';
|
|
|
|
export const runtime = 'edge';
|
2025-04-12 08:04:40 +08:00
|
|
|
|
2025-04-16 01:20:15 +08:00
|
|
|
export default function PersonalAccountPage() {
|
2025-04-18 06:49:07 +08:00
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
// Use client-side navigation instead of server redirect
|
|
|
|
useEffect(() => {
|
2025-04-18 08:00:04 +08:00
|
|
|
router.replace('/dashboard');
|
2025-04-18 06:49:07 +08:00
|
|
|
}, [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>
|
|
|
|
);
|
2025-04-16 01:20:15 +08:00
|
|
|
}
|