Skip Login

How to set Dashboards First page instead Login

This section explains how to set the Dashboard page as the default starting page, skipping the Login page, for cases where it is not needed.

  1. Open the file: src\app\page.tsx and edit the code below.

To:

src\app\page.tsx
// @next
import dynamic from 'next/dynamic';
 
// @project
 const AuthLayout = dynamic(() => import('@/layouts/AuthLayout'));
 const AuthLogin = dynamic(() => import('@/views/auth/login'));
 
/***************************  MAIN - DEFAULT PAGE  ***************************/
 
export default function Home() {
  
   return (
     <AuthLayout>
       <AuthLogin />
     </AuthLayout>
   );
}

From:

  1. Comment out the AuthGuard & RoleGuard wrapper for the routes. :