Commit Graph

13 Commits

Author SHA1 Message Date
Claude
2726ac4981 feat: Add development mode for frontend in Kubernetes/Tilt
Added ability to run frontend in development mode with Vite dev server
for debugging React Error #306 and seeing unminified error messages.

Changes Made:

1. **New Dockerfile.kubernetes.dev**:
   - Runs Vite dev server instead of production build
   - Sets NODE_ENV=development for unminified React
   - Uses npm run dev with --host 0.0.0.0 for K8s access
   - Port 3000 for consistency with production
   - Enables hot reload and debug logging

2. **Updated Tiltfile**:
   - Changed dockerfile to Dockerfile.kubernetes.dev for dev mode
   - Added live_update for hot reload:
     - Syncs src/, public/, index.html, vite.config.ts
     - Falls back on package.json changes
     - Runs npm ci if dependencies change
   - Added comments for switching between dev/prod

Benefits:
- See all console.log debug messages (🔍, , 🔴)
- Get unminified React error messages with line numbers
- Hot reload on file changes
- Full error stack traces
- Easy to switch back to prod mode

To Use:
1. Run: tilt up
2. Frontend will rebuild with dev server
3. Check browser console for debug logs
4. See ErrorBoundary messages with full details

To Switch Back to Production:
- Change dockerfile line in Tiltfile to:
  dockerfile='./frontend/Dockerfile.kubernetes'
2025-11-07 21:01:51 +00:00
Urtzi Alfaro
394ad3aea4 Improve AI logic 2025-11-05 13:34:56 +01:00
Urtzi Alfaro
63f5c6d512 Improve the frontend 3 2025-10-30 21:08:07 +01:00
Urtzi Alfaro
61376b7a9f Improve the frontend and fix TODOs 2025-10-24 13:05:04 +02:00
Urtzi Alfaro
8d30172483 Improve the frontend 2025-10-21 19:50:07 +02:00
Urtzi Alfaro
62971c07d7 Update landing page 2025-10-18 16:03:23 +02:00
Urtzi Alfaro
d4060962e4 Improve demo seed 2025-10-17 07:31:14 +02:00
Urtzi Alfaro
8f9e9a7edc Add role-based filtering and imporve code 2025-10-15 16:12:49 +02:00
Urtzi Alfaro
7556a00db7 Improve the demo feature of the project 2025-10-12 18:47:33 +02:00
Urtzi Alfaro
3c689b4f98 REFACTOR external service and improve websocket training 2025-10-09 14:11:02 +02:00
Urtzi Alfaro
7c72f83c51 REFACTOR ALL APIs fix 1 2025-10-07 07:15:07 +02:00
Urtzi Alfaro
dc8221bd2f Add DEMO feature to the project 2025-10-03 14:09:34 +02:00
Urtzi Alfaro
b93fb850c3 Add tilt support 2025-10-01 18:58:30 +02:00