File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,6 @@ import Tutor from '@/views/TutorPage.vue';
66import LandingPage from '@/views/LandingPage.vue' ;
77import NotFound from '@/views/NotFound.vue' ;
88
9- const mapEnv = {
10- dev : 'dev' ,
11- prod : 'prod'
12- } ;
13- const { VITE_ENVIRONMENT } = import . meta. env as 'dev' | 'prod' ;
14-
159const router = createRouter ( {
1610 history : createWebHistory ( import . meta. env . BASE_URL ) ,
1711 routes : [
@@ -37,11 +31,9 @@ const router = createRouter({
3731 component : Bookmarks
3832 } ,
3933 {
40- ...( mapEnv [ VITE_ENVIRONMENT ] !== 'prod' && {
41- path : '/tutor' ,
42- name : 'tutor' ,
43- component : Tutor
44- } )
34+ path : '/tutor' ,
35+ name : 'tutor' ,
36+ component : Tutor
4537 } ,
4638 { path : '/:pathMatch(.*)*' , name : 'NotFound' , component : NotFound }
4739 ]
You can’t perform that action at this time.
0 commit comments