diff --git a/vite.config.js b/vite.config.js index 86ae2e3..4564dfc 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,11 +2,13 @@ import { fileURLToPath, URL } from "node:url"; import { loadEnv, defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; + // https://vite.dev/config/ export default defineConfig((mode) => { const env = loadEnv(mode.mode, process.cwd()); return { + base: process.env.NODE_ENV === 'production' ? '/cockpit/' : '/', plugins: [vue()], resolve: { alias: {