import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'; const routes: RouteRecordRaw[] = [ { path: '/', name: 'home', component: () => import('@/modules/home/views/Home.vue'), }, { path: '/about', name: 'about', component: () => import('@/modules/about/views/About.vue'), }, { path: '/notfound', name: 'notfound', component: () => import('@/modules/notfound/views/NotFound.vue'), }, { path: '/:pathMatch(.*)*', redirect: '/notfound', }, ]; export const router = createRouter({ history: createWebHistory(import.meta.env.VITE_APP_BASE_PATH), routes, });