mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 14:20:50 +08:00
chore: use devServer.proxy
This commit is contained in:
parent
a75c039a40
commit
c6ddf9ac3f
|
@ -7,6 +7,15 @@ module.exports = {
|
||||||
devServer: {
|
devServer: {
|
||||||
disableHostCheck: true,
|
disableHostCheck: true,
|
||||||
port: process.env.DEV_SERVER_PORT || 8080,
|
port: process.env.DEV_SERVER_PORT || 8080,
|
||||||
|
proxy: {
|
||||||
|
"^/api": {
|
||||||
|
target: "http://localhost:3000",
|
||||||
|
changeOrigin: true,
|
||||||
|
pathRewrite: {
|
||||||
|
"^/api": "/",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pwa: {
|
pwa: {
|
||||||
name: "YesPlayMusic",
|
name: "YesPlayMusic",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user