260322:1648 Correct Coresspondence / Doing RFA / Correct CI
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// File: app/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default function RootPage() {
|
||||
// เมื่อเข้าหน้าแรก ให้ Redirect ไปที่ /dashboard ทันที
|
||||
// ซึ่งถ้ายังไม่ Login -> Middleware จะดีดไปหน้า /login ให้เอง
|
||||
redirect("/dashboard");
|
||||
}
|
||||
redirect('/dashboard');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user