16 lines
409 B
TypeScript
16 lines
409 B
TypeScript
|
|
import { defineConfig } from "vite";
|
||
|
|
import react from "@vitejs/plugin-react";
|
||
|
|
|
||
|
|
// During `vite dev` (host with Node), proxy API calls to the backend container.
|
||
|
|
const proxy = {
|
||
|
|
"/api": "http://localhost:8080",
|
||
|
|
"/auth": "http://localhost:8080",
|
||
|
|
"/healthz": "http://localhost:8080",
|
||
|
|
};
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
server: { port: 5173, proxy },
|
||
|
|
build: { outDir: "dist" },
|
||
|
|
});
|