import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

export default defineConfig({
  plugins: [react()],
  server: {
    port: 5173,
    proxy: {
      "/compile": "http://localhost:8787",
      "/analyze": "http://localhost:8787",
      "/layout": "http://localhost:8787",
      "/health": "http://localhost:8787"
    }
  },
  preview: {
    port: 4173
  }
});
