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.
Open the file:
src\app\page.tsxand edit the code below.
To:
// @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>
);
}// @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:
Comment out the
AuthGuard & RoleGuardwrapper for the routes. :