forked from baron/baron-sso
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: "0.0.0.0", // Ensure binding to all interfaces
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.API_PROXY_TARGET || "http://localhost:3000",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
esbuild: {
|
|
// drop: process.env.APP_ENV === "production" ? ["console", "debugger"] : [],
|
|
},
|
|
});
|