import { defineConfig } from "vite"; import solid from "vite-plugin-solid"; // Vite rather than `bun build`: Solid's JSX is a compile-time transform // (babel-plugin-jsx-dom-expressions), not the automatic JSX runtime bun // implements. bun is still the package manager and the runtime — `bun run dev`. // // The dev server proxies /api to the Rust binary so cookies stay same-origin. // Start the backend with `--dev`, which drops the cookie's Secure requirement. export default defineConfig({ plugins: [solid()], server: { port: 5173, proxy: { "/api": "http://127.0.0.1:7372" }, }, build: { outDir: "dist", emptyOutDir: true }, });