2021-12-08 23:43:52 +08:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2022-09-26 21:40:37 +08:00
|
|
|
plugins: [react()],
|
2021-12-08 23:43:52 +08:00
|
|
|
server: {
|
2022-09-09 07:40:21 +08:00
|
|
|
host: "0.0.0.0",
|
2022-07-14 19:33:20 +08:00
|
|
|
port: 3000,
|
2021-12-08 23:43:52 +08:00
|
|
|
proxy: {
|
|
|
|
"/api": {
|
2022-02-04 19:17:11 +08:00
|
|
|
target: "http://localhost:8080/",
|
2021-12-08 23:43:52 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-09-09 07:40:21 +08:00
|
|
|
"/o/": {
|
|
|
|
target: "http://localhost:8080/",
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-02-04 19:17:11 +08:00
|
|
|
"/h/": {
|
2022-02-06 00:13:15 +08:00
|
|
|
target: "http://localhost:8080/",
|
2021-12-17 08:11:02 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2022-10-26 20:13:02 +08:00
|
|
|
"^/u/\\d*/rss.xml": {
|
|
|
|
target: "http://localhost:8080/",
|
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2021-12-08 23:43:52 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|