添加 server 启动
This commit is contained in:
12
mobile-web/server/config/chalk.config.js
Normal file
12
mobile-web/server/config/chalk.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
//
|
||||
// 粉笔:
|
||||
// 输出不同颜色的提示信息
|
||||
|
||||
const chalk = require('chalk');
|
||||
|
||||
module.exports = {
|
||||
chalkError: chalk.red,
|
||||
chalkSuccess: chalk.green,
|
||||
chalkWarning: chalk.yellow,
|
||||
chalkProcessing: chalk.blue,
|
||||
};
|
||||
10
mobile-web/server/config/proxy.prod.config.js
Normal file
10
mobile-web/server/config/proxy.prod.config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
'/admin-api -> http://180.167.213.26:18083/': {
|
||||
changeOrigin: true,
|
||||
pathRewrite: {},
|
||||
},
|
||||
'/server/api -> https://preview.pro.ant.design/': {
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/server': '' },
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user