更新环境
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user