import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
const API_PORT = process.env.SYNAPSE_API_PORT || "8013";
export default defineConfig({
plugins: [vue()],
server: {
port: 5173,
// dev: API ходит на локальный FastAPI без CORS-шума
proxy: {
"/api": { target: `http://localhost:${API_PORT}`, changeOrigin: true },
"/auth": { target: `http://localhost:${API_PORT}`, changeOrigin: true },
},
},
build: {
outDir: "dist",
},
});