2d541f2e32
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
18 lines
482 B
TypeScript
18 lines
482 B
TypeScript
import { beforeRegisterGuard } from "@/router/guards/register-guard";
|
|
import { RouteConfig } from "vue-router";
|
|
import { EsModuleComponent } from "vue/types/options";
|
|
|
|
export enum ErrorRouteName {
|
|
ERROR = "Error",
|
|
}
|
|
|
|
export const errorRoutes: RouteConfig[] = [
|
|
{
|
|
path: "/error",
|
|
name: ErrorRouteName.ERROR,
|
|
component: (): Promise<EsModuleComponent> =>
|
|
import(/* webpackChunkName: "Error" */ "../views/Error.vue"),
|
|
beforeEnter: beforeRegisterGuard,
|
|
},
|
|
];
|