mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 05:12:21 +08:00
chore: use devServer.proxy
This commit is contained in:
parent
a75c039a40
commit
c6ddf9ac3f
|
@ -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…
Reference in New Issue
Block a user