diff --git a/vue.config.js b/vue.config.js index 6e49e9b..b173798 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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",