代码拉取完成,页面将自动刷新
'use strict';
const proxy = {
'/api/admin': {
target: 'https://sandbox-c.jufubao.cn',
pathRewrite: {"^/api/admin": "/api/admin"},
changeOrigin: true,
secure: false,
},
'/oauth': {
target: 'https://sandbox-c.jufubao.cn',
pathRewrite: {"^/oauth": "/oauth"},
changeOrigin: true,
secure: false,
}
};
const defaultSettings = require('./settings');
// If your port is set to 80,
// use administrator privileges to execute the command line.
// For example, Mac: sudo npm run
// You can change the port by the following method:
// port = 9527 npm run dev OR npm run dev --port = 9527
const port = process.env.port || process.env.npm_config_port || defaultSettings.port || 9527; // dev port
const devServer = {
port: defaultSettings.port,
open: true,
//host:'192.168.0.4',
disableHostCheck: true, // 新增该配置项
overlay: {
warnings: true,
errors: true
},
//proxy, //proxy与before不能共用,before优先于proxy
//before: ()=> {}
};
module.exports = devServer;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。