You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web/vite.config.ts

30 lines
637 B
TypeScript

3 years ago
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
3 years ago
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
3 years ago
server: {
host: "0.0.0.0",
port: 3000,
3 years ago
proxy: {
"^/api": {
target: "http://localhost:8080/",
3 years ago
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,
},
3 years ago
},
},
});