1
1
mirror of https://github.com/usememos/memos.git synced 2024-12-25 12:23:09 +03:00
memos/web/vite.config.ts
Zhou Yunliang 4e00b1b0cd
feat: rss support ()
* 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

30 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,
},
},
},
});