You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
493 B

2 years ago
const path = require('path')
const fs = require('fs')
3 years ago
module.exports = {
2 years ago
devServer: {
proxy: {
'/api': {
target: 'http://127.0.0.1:8888',
changeOrigin: true,
ws: false,
pathRewrite: {
'^/api': ''
}
}
},
// 音视频功能需要ssl证书,如需调试请打开注释
// https: {
// cert: fs.readFileSync(path.join(__dirname, 'src/ssl/cert.crt')),
// key: fs.readFileSync(path.join(__dirname, 'src/ssl/cert.key'))
// }
}
3 years ago
2 years ago
}