|
@@ -3,13 +3,15 @@ import vue from "@vitejs/plugin-vue";
|
|
|
import { resolve } from "path";
|
|
|
import ElementPlus from "unplugin-element-plus/vite";
|
|
|
|
|
|
+
|
|
|
let app = "fire";
|
|
|
if (process.argv.length > 3) {
|
|
|
app = process.argv[process.argv.length - 1].trim();
|
|
|
}
|
|
|
|
|
|
const dev = true;
|
|
|
-
|
|
|
+// const devUrl = "https://xj-mix3d.4dkankan.com"
|
|
|
+const devUrl = "https://192.168.0.25"
|
|
|
export default defineConfig({
|
|
|
define: {
|
|
|
VITE_APP_APP: JSON.stringify(app),
|
|
@@ -46,13 +48,13 @@ export default defineConfig({
|
|
|
proxy: {
|
|
|
"/api": {
|
|
|
secure: false,
|
|
|
- target: dev ? "https://xj-mix3d.4dkankan.com" : "mix3d.4dkankan.com",
|
|
|
+ target: dev ? devUrl : "mix3d.4dkankan.com",
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
|
|
|
},
|
|
|
"/fusion-xj": {
|
|
|
secure: false,
|
|
|
- target: dev ? "https://xj-mix3d.4dkankan.com" : "mix3d.4dkankan.com",
|
|
|
+ target: dev ? devUrl : "mix3d.4dkankan.com",
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), "/fusion-xj"),
|
|
|
},
|