Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
refactor: declare variable for devProxyServer (#1220)
远浅71de6613d3a5
diff --git a/web/vite.config.ts b/web/vite.config.tsindex f3d51e149..284dc8994 100644--- a/web/vite.config.ts+++ b/web/vite.config.ts@@ -2,6 +2,8 @@ import { resolve } from "path";import { defineConfig } from "vite";import react from "@vitejs/plugin-react-swc";+const devProxyServer = "http://localhost:8081/";+// https://vitejs.dev/config/export default defineConfig({plugins: [react()],@@ -10,19 +12,19 @@ export default defineConfig({port: 3001,proxy: {"^/api": {- target: "http://localhost:8081/",+ target: devProxyServer,changeOrigin: true,},"^/o/": {- target: "http://localhost:8081/",+ target: devProxyServer,changeOrigin: true,},"^/u/\\d*/rss.xml": {- target: "http://localhost:8081/",+ target: devProxyServer,changeOrigin: true,},"/explore/rss.xml": {- target: "http://localhost:8081/",+ target: devProxyServer,changeOrigin: true,},},