// ----------------------------------------------------------------------------- // Home-Ka — US real-estate aggregator (Groupe KA) // Author: Simon-Pierre Boucher — contact@spboucher.ai // vite.config.ts : Vite configuration (dev API proxy, build to dist/) // ----------------------------------------------------------------------------- import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], // @groupe-ka/ka-maps is a file: dependency (../vendor/ka-maps) without its // own node_modules — keep the symlink so its imports (mapbox-gl, react) // resolve from this project's node_modules. resolve: { preserveSymlinks: true }, server: { proxy: { "/api": "http://localhost:8090" }, }, build: { outDir: "dist", chunkSizeWarningLimit: 1200 }, });