chore: use devServer.proxy

This commit is contained in:
qier222 2021-02-15 23:40:09 +08:00
parent a75c039a40
commit c6ddf9ac3f
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D

View File

@ -7,6 +7,15 @@ module.exports = {
devServer: {
disableHostCheck: true,
port: process.env.DEV_SERVER_PORT || 8080,
proxy: {
"^/api": {
target: "http://localhost:3000",
changeOrigin: true,
pathRewrite: {
"^/api": "/",
},
},
},
},
pwa: {
name: "YesPlayMusic",