import { defineConfig } from "vite"; import solidPlugin from "vite-plugin-solid"; const backendTarget = process.env.VITE_BACKEND_URL ?? "http://localhost:3000"; export default defineConfig({ plugins: [solidPlugin()], server: { port: 5173, proxy: { "/api": { target: backendTarget, changeOrigin: true, }, "/health": { target: backendTarget, changeOrigin: true, }, }, }, build: { target: "esnext", }, });