chore: 主题通道第一步挂载 + 迁移 Vue3 前基线
This commit is contained in:
+18
-8
@@ -76,14 +76,24 @@ module.exports = {
|
||||
https: false, //是否开启https
|
||||
hotOnly: true, //是否配置热更新
|
||||
open: true, //配置自动启动浏览器
|
||||
// proxy: { //配置多个代理跨域(配置一个 proxy: 'http://localhost:4000' )
|
||||
// '/api': {
|
||||
// target: 'http://basedebug.bestsch.com/BschHome',
|
||||
// ws: true, //是否跨域
|
||||
// changeOrigin: true,
|
||||
// // pathRewrite: { '^/api': '' }
|
||||
// }
|
||||
// },
|
||||
// 主题通道 dev 代理(A 类接入 §2.2 第一步):
|
||||
// 本地开发时 /static/* 兜到主题通道(默认线上通道),联调本地通道源可覆盖:
|
||||
// YH_THEME_PROXY_TARGET=http://localhost:9527 npm run dev
|
||||
// 生产与通道同源,不依赖本代理。
|
||||
proxy: {
|
||||
"/static": {
|
||||
target: process.env.YH_THEME_PROXY_TARGET || "http://base.yunhaixingtong.com",
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
}
|
||||
// 原有业务接口代理示例(按需启用):
|
||||
// '/api': {
|
||||
// target: 'http://basedebug.bestsch.com/BschHome',
|
||||
// ws: true, //是否跨域
|
||||
// changeOrigin: true,
|
||||
// // pathRewrite: { '^/api': '' }
|
||||
// }
|
||||
},
|
||||
overlay: {
|
||||
//关闭eslint
|
||||
warnings: false,
|
||||
|
||||
Reference in New Issue
Block a user