Login as First Page
How to set login as First page instead landing
// import { lazy } from 'react';
import { createBrowserRouter } from 'react-router-dom';
// project-imports
// import SimpleLayout from 'layout/Simple';
// import Loadable from 'components/Loadable';
import ComponentsRoutes from './ComponentsRoutes';
import LoginRoutes from './LoginRoutes';
import MainRoutes from './MainRoutes';
import { SimpleLayoutType } from 'config';
// render - landing page
// const PagesLanding = Loadable(lazy(() => import('pages/landing')));
// ==============================|| ROUTING RENDER ||============================== //
// const router = createBrowserRouter(
// [
// {
// path: '/',
// element: <SimpleLayout layout={SimpleLayoutType.LANDING} />,
// children: [
// {
// index: true,
// element: <PagesLanding />
// }
// ]
// },
// LoginRoutes,
// ComponentsRoutes,
// MainRoutes
// ],
// { basename: import.meta.env.VITE_APP_BASE_NAME }
// );
const router = createBrowserRouter(
[
{
LoginRoutes,
ComponentsRoutes,
MainRoutes
}
]
)
export default router;Last updated