memos/web/vite.config.ts
Zhou Yunliang 4e00b1b0cd
feat: rss support (#343)
* feat: rss support

* chore: go mod tidy

* chore: change route group prefix

* Update server/server.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

* Update server/rss.go

Co-authored-by: boojack <stevenlgtm@gmail.com>

Co-authored-by: boojack <stevenlgtm@gmail.com>
2022-10-26 20:13:02 +08:00

29 lines
630 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: "0.0.0.0",
port: 3000,
proxy: {
"/api": {
target: "http://localhost:8080/",
changeOrigin: true,
},
"/o/": {
target: "http://localhost:8080/",
changeOrigin: true,
},
"/h/": {
target: "http://localhost:8080/",
changeOrigin: true,
},
"^/u/\\d*/rss.xml": {
target: "http://localhost:8080/",
changeOrigin: true,
},
},
},
});