Browse Source

refactor: 配置修改

master
niushuai233 2 years ago
parent
commit
1e7216feef
  1. 2
      .env
  2. 6
      .env.development
  3. 6
      .env.production
  4. 8
      .env.test
  5. 2
      package.json
  6. 16
      vue.config.js

2
.env

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
NODE_ENV=development
VUE_APP_PLATFORM_NAME=JeecgBoot 企业级低代码平台
VUE_APP_PLATFORM_NAME=DB Bastion Server
# 开启单点登录
VUE_APP_SSO=false
# 开启微应用模式

6
.env.development

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
NODE_ENV=development
VUE_APP_API_BASE_URL=http://localhost:8080/
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_API_BASE_URL=http://localhost:8080/devApi
VUE_APP_CAS_BASE_URL=http:///cas
VUE_APP_ONLINE_BASE_URL=http:///onlinePreview
# 微应用列表必须VUE_APP_SUB_开头,jeecg-app-1为子应用的项目名称,也是子应用的路由父路径
VUE_APP_SUB_jeecg-app-1 = '//localhost:8092'

6
.env.production

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
NODE_ENV=production
VUE_APP_API_BASE_URL=http://localhost:8080/jeecg-boot
VUE_APP_CAS_BASE_URL=http://localhost:8888/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
VUE_APP_API_BASE_URL=http://localhost:8080/prodApi
VUE_APP_CAS_BASE_URL=http:///cas
VUE_APP_ONLINE_BASE_URL=http:///onlinePreview

8
.env.test

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
NODE_ENV=production
VUE_APP_API_BASE_URL=http://boot.jeecg.com:8080/jeecg-boot
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
NODE_ENV=test
VUE_APP_API_BASE_URL=http://localhost:8080/testApi
VUE_APP_CAS_BASE_URL=http:///cas
VUE_APP_ONLINE_BASE_URL=http:///onlinePreview

2
package.json

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
{
"name": "vue-antd-jeecg",
"name": "db-bastion-vue-antd",
"version": "3.4.3",
"private": true,
"scripts": {

16
vue.config.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
const path = require('path')
const CompressionPlugin = require("compression-webpack-plugin")
const CompressionPlugin = require('compression-webpack-plugin')
function resolve(dir) {
return path.join(__dirname, dir)
@ -68,9 +68,7 @@ module.exports = { @@ -68,9 +68,7 @@ module.exports = {
.use()
.loader('babel-loader')
.end()
},
css: {
loaderOptions: {
less: {
@ -78,9 +76,9 @@ module.exports = { @@ -78,9 +76,9 @@ module.exports = {
/* less 变量覆盖,用于自定义 ant design 主题 */
'primary-color': '#1890FF',
'link-color': '#1890FF',
'border-radius-base': '4px',
'border-radius-base': '4px'
},
javascriptEnabled: true,
javascriptEnabled: true
}
}
},
@ -102,16 +100,16 @@ module.exports = { @@ -102,16 +100,16 @@ module.exports = {
ws: false,
changeOrigin: true,
pathRewrite: {
'/jeecg-boot': '' //默认所有请求都加了jeecg-boot前缀,需要去掉
'/xxx': '' //默认所有请求都加了xxx前缀,需要去掉
}
}, */
/* jeecgboot.env
/* xxx.env
issues/3462 很多人此处做了配置导致刷新前端404问题请一定注意 */
'/jeecg-boot': {
'/xxx': {
target: 'http://localhost:8080',
ws: false,
changeOrigin: true
},
}
}
},

Loading…
Cancel
Save