30f9148adb
- 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
24 lines
462 B
JavaScript
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: './'
|
|
})
|