Commit b80f6587 authored by wcmoon's avatar wcmoon

fix: 修改部署格式,浏览器地址在 nginx 里配置

parent b40106e8
...@@ -25,4 +25,10 @@ build:hd_prod ...@@ -25,4 +25,10 @@ build:hd_prod
location /api/ { location /api/ {
proxy_pass 服务端地址; proxy_pass 服务端地址;
} }
- 浏览器地址
```
location /llq {
rewrite ^/(.*) {浏览器地址} permanent;
}
```
const configModules = { const configModules = {
// 溯源>测试环境 // 溯源>测试环境
"sy_test": { "sy_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/', CHAIN_BROWSER_URL_PREFIX: '/llq',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', INERFACE_URL_PREFIX: '/api',
/** /**
* 网站入口配置 * 网站入口配置
*/ */
...@@ -17,10 +17,10 @@ const configModules = { ...@@ -17,10 +17,10 @@ const configModules = {
}, },
// 溯源>正式环境 // 溯源>正式环境
"sy_prod": { "sy_prod": {
// CHAIN_BROWSER_URL_PREFIX: 'https://cx.chain33.pro/', CHAIN_BROWSER_URL_PREFIX: '/llq',
// INERFACE_URL_PREFIX: 'https://sy.chain33.pro/api', INERFACE_URL_PREFIX: '/api',
CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/', // CHAIN_BROWSER_URL_PREFIX: 'http://121.40.18.70:8995/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789', // INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
INDEX: { INDEX: {
entry: './src/entry/sy/main.ts', entry: './src/entry/sy/main.ts',
template: './public/sy/index.html', template: './public/sy/index.html',
......
...@@ -8,13 +8,17 @@ module.exports = { ...@@ -8,13 +8,17 @@ module.exports = {
devServer: { devServer: {
// port: port, // port: port,
open: true, open: true,
// overlay: { proxy: {
// warnings: false, '^/api': {
// errors: true target: 'http://172.16.101.87:46789',
// }, pathRewrite: {
'^/api': '',
},
changeOrigin: true,
},
},
}, },
pages: { pages: {
index: UrlPrefixObj.model.INDEX index: UrlPrefixObj.model.INDEX
} }
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment