Skip to content

Commit b74420c

Browse files
feat(tutor): gives access to route
1 parent 2edc9b5 commit b74420c

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/router/index.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import Tutor from '@/views/TutorPage.vue';
66
import LandingPage from '@/views/LandingPage.vue';
77
import 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-
159
const 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
]

0 commit comments

Comments
 (0)