This commit is contained in:
2024-08-21 11:03:31 +08:00
parent 934b3b7b74
commit e25627cda9
33 changed files with 204 additions and 176 deletions

View File

@@ -1,8 +1,8 @@
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import {fileURLToPath, URL} from "node:url";
import {defineConfig} from "vite";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
import {ElementPlusResolver} from "unplugin-vue-components/resolvers";
import Icons from "unplugin-icons/vite";
import IconsResolver from "unplugin-icons/resolver";
import vue from "@vitejs/plugin-vue";
@@ -69,16 +69,19 @@ export default defineConfig({
strictPort: false,
open: true,
proxy: {
"/api/custom/": {
target: "http://clay.frp.feashow.cn",
// target: "http://10.7.127.57:8000",
// "/api/custom/": {
// target: "http://clay.frp.feashow.cn",
// // target: "http://10.7.127.57:8000",
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, ""),
// },
"/api": {
// target: "http://fateverse-vue.frp.feashow.cn",
// changeOrigin: true,
target: "http://192.168.31.176:9010",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
"/api": {
target: "http://fateverse-vue.frp.feashow.cn",
changeOrigin: true,
},
"/api/notice-ws": {
target: "ws://fateverse-vue.frp.feashow.cn/api/notice-ws",
ws: true,