UNPKG

next-start-cli

Version:

This is a CLI tool to create a nextjs project and add the necessary dependencies and configurations

26 lines (21 loc) 688 B
import { IBaseMenuItem } from "./admin-routes"; /** * The default redirect path for non-logged in users * @type {string} */ export const DEFAULT_NON_AUTH_REDIRECT: string = "/login"; /** * The default redirect path for non-authorized users * @type {string} */ export const DEFAULT_NON_AUTHORIZED_REDIRECT: string = "/login"; /** * An array of routes that are used for authentication * These routes will redirect logged in users to the dashboard */ export const authRoutes: IBaseMenuItem[] = [{ title: "Login", url: "/login" }]; /** * The default redirect path after logging in * @type {string} */ export const DEFAULT_LOGIN_REDIRECT: string = "/admin/dashboard/overview";