From 5c86246f016cbd78d68cf5d72480585d62f41923 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 17 十月 2024 10:12:01 +0800
Subject: [PATCH] aaa
---
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