import { fileURLToPath, URL } from "node:url"; import babel from "@rolldown/plugin-babel"; import react, { reactCompilerPreset } from "@vitejs/plugin-react"; import { defineConfig } from "vite"; // https://vite.dev/config/ export default defineConfig({ plugins: [react(), babel({ presets: [reactCompilerPreset()] })], resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) } }, server: { proxy: { "/api/": { target: process.env.API_PROXY_TARGET ?? "http://localhost:3000", }, }, }, });