mirror of
https://github.com/sstent/aicyclingcoach-go.git
synced 2026-03-06 21:15:24 +00:00
sync
This commit is contained in:
13
frontend/pages/index.js
Normal file
13
frontend/pages/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
|
||||
export default function Home() {
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
// Redirect to dashboard
|
||||
router.push('/dashboard');
|
||||
}, [router]);
|
||||
|
||||
return null; // or a loading spinner
|
||||
}
|
||||
Reference in New Issue
Block a user