diff --git a/src/router/index.ts b/src/router/index.ts index eed5b6e..061fe78 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -82,7 +82,7 @@ const router = createRouter({ }); router.beforeEach((to, _, next) => { - if (to.meta.maintenance === true && import.meta.env.DEV) next({name: 'maintenance'}) + if (to.meta.maintenance === true && !import.meta.env.DEV) next({name: 'maintenance'}) else next() })