添加音乐解析

This commit is contained in:
algerkong
2021-11-08 17:04:38 +08:00
parent f780dd92c5
commit 12053b780d
6 changed files with 70 additions and 16 deletions
+9 -4
View File
@@ -1,6 +1,6 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import path from "path"
// https://vitejs.dev/config/
export default defineConfig({
@@ -25,6 +25,11 @@ export default defineConfig({
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
"/music": {
target: "http://myalger.top:4000",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/music/, ""),
},
},
},
});
})