2024-02-21 10:13:48 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
2024-02-17 11:17:38 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2024-09-24 13:28:04 +00:00
|
|
|
base: '',
|
2024-02-17 11:17:38 +00:00
|
|
|
plugins: [react()],
|
2024-02-21 10:13:48 +00:00
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
"/api": {
|
2024-07-25 12:28:56 +00:00
|
|
|
target: "http://localhost:9090",
|
2024-02-21 10:13:48 +00:00
|
|
|
},
|
2024-07-15 20:21:14 +00:00
|
|
|
"/-/": {
|
2024-07-25 12:28:56 +00:00
|
|
|
target: "http://localhost:9090",
|
2024-07-15 20:21:14 +00:00
|
|
|
},
|
2024-09-06 19:22:26 +00:00
|
|
|
// "/api": {
|
|
|
|
// target: "https://prometheus.demo.do.prometheus.io/",
|
|
|
|
// changeOrigin: true,
|
|
|
|
// },
|
|
|
|
// "/-/": {
|
|
|
|
// target: "https://prometheus.demo.do.prometheus.io/",
|
|
|
|
// changeOrigin: true,
|
|
|
|
// },
|
2024-02-21 10:13:48 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|