51da3ddd65
Implement web frontend using Vite + React + TypeScript with: - Chakra UI component library for theming and styling - SignalR bridge (lunaBridge) for real-time server communication - Chat components (ChatPanel, ChatInput, ChatMessage) - Layout components (AppLayout, Sidebar, StatusBar, SystemPanel) - Custom useChat hook for conversation state management - Dark/light theme support via ColorModeProvider - Mock conversation data for development
23 lines
451 B
TypeScript
23 lines
451 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
|
import babel from '@rolldown/plugin-babel'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
babel({ presets: [reactCompilerPreset()] })
|
|
],
|
|
resolve: {
|
|
tsconfigPaths: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/chat': {
|
|
target: 'http://localhost:5000',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|