import { createRouter, createWebHistory } from "@ionic/vue-router"; import { RouteRecordRaw } from "vue-router"; import HomePage from "../views/HomePage.vue"; const routes: Array = [ { path: "/", redirect: "/home" }, { path: "/home", component: HomePage, name: "HomePage", }, ]; const router = createRouter({ history: createWebHistory(process.env.BASE_URL), routes, }); export default router;