From dcdb0231034810232f2542f3865666ebf72daf11 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 30 四月 2025 16:45:34 +0800
Subject: [PATCH] sf

---
 platform/vue.config.js |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/platform/vue.config.js b/platform/vue.config.js
index e26acf4..6b5f23a 100644
--- a/platform/vue.config.js
+++ b/platform/vue.config.js
@@ -1,11 +1,24 @@
 
 const outputDir = process.env.VUE_APP_CONTEXT_PATH.substring(1, process.env.VUE_APP_CONTEXT_PATH.length)
+// const proxyMiddleware = require('http-proxy-middleware');
 module.exports = {
   publicPath: './',
-  outputDir: outputDir,
+  outputDir: outputDir || 'web',
   assetsDir: 'static',
   lintOnSave: false,
   devServer: {
+    // before(app) {
+    //   app.use(
+    //     [process.env.VUE_APP_API_PREFIX],
+    //     proxyMiddleware({
+    //       target: process.env.VUE_APP_API,
+    //       changeOrigin: true,
+    //       pathRewrite: {
+    //         [`^${[process.env.VUE_APP_API_PREFIX]}`]: ''
+    //       }
+    //     })
+    //   );
+    // },
     host: '0.0.0.0',
     port: 10086,
     proxy: {

--
Gitblit v1.9.3