This commit is contained in:
dzc committed 2025-10-27 10:32:27 +08:00
commit 2a98e5d154
1 file changed
+2
+2
View File
@@ -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: {