This commit is contained in:
zjf committed 2025-10-23 20:36:00 +08:00
1 parent 5485c3b85a
commit 6474f3a02b
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: {