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/",
|
|
|
|
// target: "https://memos.justsven.top/",
|
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/",
|
|
|
|
// target: "https://memos.justsven.top/",
|
2021-12-17 03:11:02 +03:00
|
|
|
changeOrigin: true,
|
|
|
|
},
|
2021-12-08 18:43:52 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|