Login as First Page
How to set login as First page instead landing
// import { lazy } from 'react';
import { createBrowserRouter } from 'react-router-dom';
// routes
import AuthenticationRoutes from './AuthenticationRoutes';
import LoginRoutes from './LoginRoutes';
import MainRoutes from './MainRoutes';
import SimpleRoutes from './SimpleRoutes';
// project imports
// import Loadable from 'ui-component/Loadable';
// const PagesLanding = Loadable(lazy(() => import('views/pages/landing')));
// ==============================|| ROUTING RENDER ||============================== //
const router = createBrowserRouter(
[
// { path: '/', element: <PagesLanding /> },
LoginRoutes,
AuthenticationRoutes,
SimpleRoutes,
MainRoutes
],
{
basename: import.meta.env.VITE_APP_BASE_NAME
}
);
export default router;