更新环境

This commit is contained in:
super
2026-06-11 20:37:18 +08:00
parent efed871f57
commit 3a96a01715
9 changed files with 110 additions and 218 deletions

View File

@@ -11,7 +11,9 @@ const monacoEditorPlugin =
const host = process.env.TAURI_DEV_HOST;
export default defineConfig({
base: process.env.NODE_ENV === "production" ? "/images/newyaoyan/" : "/",
base:
process.env.VITE_APP_BASE ||
(process.env.NODE_ENV === "production" ? "/images/newyaoyan/" : "/"),
plugins: [monacoEditorPlugin({}), vue(), tailwindcss()],
build: {
outDir: process.env.VITE_BUILD_OUT_DIR || "/root/yaoyan/yaoyan_admin/images/newyaoyan",
@@ -23,11 +25,11 @@ export default defineConfig({
host: host || false,
proxy: {
"/api": {
target: "http://127.0.0.1:8001",
target: "http://47.110.241.161:8001",
changeOrigin: true,
},
"/images": {
target: "http://127.0.0.1:8001",
target: "http://47.110.241.161:8001",
changeOrigin: true,
},
},