Enable container environment variables for config.

Fixes #1
This commit is contained in:
2023-10-18 17:51:49 -05:00
parent 101c202615
commit e7dd75bc2b
11 changed files with 70 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
import { createRouter, createWebHistory } from "vue-router";
import { routerBase } from '../app.config.js';
import HomeView from "../views/HomeView.vue";
import AboutView from "../views/AboutView.vue";
import DebugFrameView from "../views/DebugFrameView.vue";
@@ -62,9 +63,11 @@ const routes = [
},
];
console.log(`mounting router on ${routerBase}`)
const router = createRouter({
history: createWebHistory(),
base: `${import.meta.env.VITE_ROUTER_BASE}`,
base: routerBase,
routes,
});