Files
Sami Alzein c047a1e4a2 feat: Add frontend pages for Hardware Status, Process Control, Recipe Management, System Settings, and User Management
feat: Implement API service for handling system, recipe, process, hardware, safety, and user management endpoints

feat: Create Zustand store for managing system state and connection status

feat: Define TypeScript types for system, recipe, process, hardware, safety, user, and API responses

chore: Configure Vite for React development with TypeScript and Tailwind CSS

feat: Implement CSV migration tools for importing legacy data into the new system
2025-08-06 22:36:59 +02:00

35 lines
632 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
'/health': {
target: 'http://localhost:8000',
changeOrigin: true,
},
'/socket.io': {
target: 'http://localhost:8000',
ws: true,
},
},
},
build: {
outDir: 'dist',
sourcemap: true,
},
resolve: {
alias: {
'@': '/src',
},
},
})