|
|
@@ -10,10 +10,9 @@ module.exports = {
|
|
|
productionSourceMap: false,
|
|
|
// options...
|
|
|
devServer: {
|
|
|
- port: 8080,
|
|
|
+ port: 8080
|
|
|
// TODO 部署到 nginx 中后,使用 rewrite 指令配置
|
|
|
- proxy: {
|
|
|
- // 静态资源地址
|
|
|
+ /* proxy: {
|
|
|
'/tnb': {
|
|
|
target: process.env.VUE_APP_BASE_API,
|
|
|
changeOrigin: true,
|
|
|
@@ -22,7 +21,6 @@ module.exports = {
|
|
|
'^/tnb': '/tnb'
|
|
|
}
|
|
|
},
|
|
|
- // 弹幕接口
|
|
|
'/api': {
|
|
|
target: process.env.VUE_APP_BASE_API,
|
|
|
changeOrigin: true,
|
|
|
@@ -31,7 +29,7 @@ module.exports = {
|
|
|
'^/api': '/api'
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
},
|
|
|
configureWebpack: {
|
|
|
// provide the app's title in webpack's name field, so that
|