diff options
author | 2022-05-24 00:07:54 +0200 | |
---|---|---|
committer | 2022-05-24 00:07:54 +0200 | |
commit | 6becdbb42329e1bdecf158707e37ba9f13ba1d2c (patch) | |
tree | d295e11b473d72685016ee9659604538da601db0 /src/router.ts | |
parent | 5ce1262fb44864b829dac09d5c0b9b68d522ceb7 (diff) | |
download | it-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.tar.gz it-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.tar.zst it-tools-6becdbb42329e1bdecf158707e37ba9f13ba1d2c.zip |
refactor(config): added config management with figue
Diffstat (limited to 'src/router.ts')
-rw-r--r-- | src/router.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/router.ts b/src/router.ts index 05f9fa3..38bda96 100644 --- a/src/router.ts +++ b/src/router.ts @@ -3,6 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router'; import HomePage from './pages/Home.page.vue'; import NotFound from './pages/404.page.vue'; import { tools } from './tools'; +import { config } from './config'; const toolsRoutes = tools.map(({ path, name, component, ...config }) => ({ path, @@ -17,7 +18,7 @@ const toolsRedirectRoutes = tools ); const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHistory(config.app.baseUrl), routes: [ { path: '/', |