// ©AngelaMos | 2026 // vite.config.ts import { resolve } from 'node:path' import react from '@vitejs/plugin-react' import { defineConfig } from 'vite' export default defineConfig({ plugins: [react()], resolve: { alias: { '@': resolve(__dirname, 'src'), }, }, css: { modules: { localsConvention: 'camelCaseOnly', }, }, server: { port: 5173, proxy: { '/api': { target: process.env.VITE_API_TARGET ?? 'http://localhost:8000', changeOrigin: true, }, '/ws': { target: process.env.VITE_WS_TARGET ?? 'ws://localhost:8000', ws: true, }, }, }, })