mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 02:01:55 +03:00
4e00b1b0cd
* 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>
30 lines
630 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
});
|