Files
kid_dash/webapp/vite.config.js
T
Elias Journal 30f9148adb Initial commit: KiddOs v3 React kiosk
- React 18 + Vite 5 hot-reload OS (800x480 Nord theme)
- 7 apps: Journal, Calculator, Drawing, CodeLab, Clock, Files, Scratch
- Cage + Cog Wayland kiosk, offline localStorage
- Scripts: dev.sh, run-kiosk.sh, run-prod.sh
2026-08-24 21:53:02 -04:00

24 lines
462 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: '0.0.0.0',
port: 5173,
hmr: {
clientPort: 5173,
// overlay shows errors on DSI too
overlay: true
},
cors: true
},
preview: {
host: '0.0.0.0',
port: 4173
},
clearScreen: false,
// For file:// fallback if needed, built files use relative paths
base: './'
})