You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
487 B
TypeScript

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",
},
});