import { createRouter, createWebHashHistory } from 'vue-router';
const { VITE_APP_NAME } = import.meta.env;

let routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('@/views/welcome.vue'),
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login.vue'),
    },
    {
        path: '/test',
        name: 'test',
        component: () => import('@projectA/views/test/index.vue'),
    },
    {
        path: '/error',
        name: 'error',
        component: () => import('@projectA/views/error/index.vue'),
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

export default router;
