chore: use devServer.proxy

master
qier222 4 years ago
parent a75c039a40
commit c6ddf9ac3f
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D

@ -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",

Loading…
Cancel
Save