Files
Wisecolt-CI/frontend/vite.config.ts

14 lines
336 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const allowedHosts = process.env.ALLOWED_HOSTS?.split(",").map((h) => h.trim()).filter(Boolean);
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
host: true,
...(allowedHosts?.length ? { allowedHosts } : {})
}
});