mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
chore: use devServer.proxy
This commit is contained in:
parent
a75c039a40
commit
c6ddf9ac3f
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue