import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' export default defineConfig({ plugins: [vue()], server: { port: 5173, proxy: { // Mirrors the Caddy `/api/*` -> backend route used in prod, so the // frontend talks to the API the same way (same-origin) in dev and prod. '/api': { target: 'http://127.0.0.1:8000', changeOrigin: true, }, }, }, })