10 lines
462 B
JavaScript
10 lines
462 B
JavaScript
import { defineConfig } from "vite";
|
|
|
|
/* Serves on 0.0.0.0 so the pod is reachable through the Service, and allows any
|
|
* Host header because the address is assigned at runtime (MetalLB locally, a
|
|
* cloud load balancer on EKS) and is never known at build time. */
|
|
export default defineConfig({
|
|
server: { host: "0.0.0.0", port: 5173, strictPort: true, allowedHosts: true },
|
|
preview: { host: "0.0.0.0", port: 5173, strictPort: true, allowedHosts: true },
|
|
});
|