Basic frontend

This commit is contained in:
James Pattinson
2025-11-10 14:51:15 +00:00
parent 3751ee0076
commit 93aeda8e83
27 changed files with 1828 additions and 2 deletions

24
frontend/vite.config.ts Normal file
View File

@@ -0,0 +1,24 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
host: true,
port: 3000,
strictPort: true,
allowedHosts: ['sasaprod', 'localhost'],
watch: {
usePolling: true
},
hmr: {
clientPort: 3500
},
proxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true
}
}
}
})