memos/web/vite.config.ts

21 lines
408 B
TypeScript
Raw Normal View History

2021-12-08 18:43:52 +03:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
cors: true,
proxy: {
"/api": {
2022-02-04 14:17:11 +03:00
target: "http://localhost:8080/",
2021-12-08 18:43:52 +03:00
changeOrigin: true,
},
2022-02-04 14:17:11 +03:00
"/h/": {
2022-02-05 19:13:15 +03:00
target: "http://localhost:8080/",
changeOrigin: true,
},
2021-12-08 18:43:52 +03:00
},
},
});