refactor(config): added config management with figue

This commit is contained in:
Corentin Thomasset 2022-05-24 00:07:54 +02:00
parent 5ce1262fb4
commit 6becdbb423
No known key found for this signature in database
GPG key ID: DBD997E935996158
7 changed files with 82 additions and 12 deletions

View file

@ -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: '/',