From 188b49ec7632e4f3d1e461b18bd486456905f3f5 Mon Sep 17 00:00:00 2001 From: Andrew Sayman Date: Thu, 24 Feb 2022 04:16:49 -0500 Subject: [PATCH] fix: use the vite BASE_URL when creating the web history (#11) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index a9e1c69..e110b67 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,7 +9,7 @@ import 'uno.css' const app = createApp(App) const router = createRouter({ - history: createWebHistory(), + history: createWebHistory(import.meta.env.BASE_URL), routes, }) app.use(router)