const path = require('path') module.exports = { hostname: '0.0.0.0', port: 8080, // 反向代理 proxy: { '/api': { target: 'https://inapi.izhyin.cn/api', changeOrigin: true, rewrite: path => path.replace(/^\/api/, '') } } }