import { TanStackRouterVite } from "@tanstack/router-plugin/vite"; import react from "@vitejs/plugin-react-swc"; import { defineConfig } from "vite"; import NodeResolve from "@rollup/plugin-node-resolve"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [TanStackRouterVite(), react()], server: { proxy: { "/influx": { target: "http://pi-chan:8086/query", rewrite: (path) => path.replace(/^\/influx/, ""), }, }, }, });