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