From 18c1f65d5655619cab65c739bc5421b504e24d72 Mon Sep 17 00:00:00 2001 From: Will Kennedy Date: Wed, 20 Nov 2024 13:51:33 -0500 Subject: [PATCH] Update base URL and asset paths Removed hardcoded '/sologger/' base path, modifying asset paths and configuration accordingly. This change ensures better flexibility for deployment environments without relying on the '/sologger/' subdirectory. --- docs/index.html | 2 +- sologger-ui/src/router/index.js | 2 +- sologger-ui/vite.config.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index 2f59412..65ce644 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5,7 +5,7 @@ Sologger - + diff --git a/sologger-ui/src/router/index.js b/sologger-ui/src/router/index.js index c6611be..7c12ac7 100644 --- a/sologger-ui/src/router/index.js +++ b/sologger-ui/src/router/index.js @@ -22,7 +22,7 @@ const routes = [ ]; const router = createRouter({ - history: createWebHashHistory(import.meta.env.BASE_URL), + history: createWebHistory('/sologger/'), routes }) export default router; \ No newline at end of file diff --git a/sologger-ui/vite.config.js b/sologger-ui/vite.config.js index 3f9c253..aa5152f 100644 --- a/sologger-ui/vite.config.js +++ b/sologger-ui/vite.config.js @@ -12,7 +12,6 @@ export default defineConfig({ base: '/sologger/', build: { outDir: 'dist', - assetsDir: 'assets', rollupOptions: { input: { main: './index.html',