cohorta/vite.config.ts
Vadym Samoilenko e01569c412
All checks were successful
Deploy to Production / deploy (push) Successful in 2m23s
feat: commit all app changes — billing API, new auth, design overhaul
Includes frontend redesign (Navigation, billingApi), backend updates
(auth routes, admin routes, LLM service refactor), MSAL removal,
and dependency updates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 19:04:43 +01:00

37 lines
788 B
TypeScript
Executable file

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
base: '/',
define: {
'import.meta.env.VITE_ENABLE_WEBSOCKET': JSON.stringify(mode === 'development' ? 'true' : 'false'),
},
server: {
host: "localhost",
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:5137',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, '/api'),
}
}
},
build: {
rollupOptions: {
output: {
manualChunks: undefined,
},
},
},
plugins: [
react(),
],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
}));