Files
unstract/frontend/sample.env
Chandrasekharan M 56c2468815 [MISC] Add frontend development configuration with hot-reloading (#1383)
- Add multi-stage Dockerfile with development target
- Configure Docker Compose watch for hot-reloading
- Set up environment variables for frontend development
2025-07-02 14:28:08 +05:30

13 lines
461 B
Bash

REACT_APP_BACKEND_URL=http://localhost:8000
# For development
NODE_ENV=development
# Enable file watching via polling instead of filesystem events
# These are critical for hot reloading to work properly in Docker containers
# as the normal filesystem event notification doesn't work reliably with mounted volumes
CHOKIDAR_USEPOLLING=true
WATCHPACK_POLLING=true
# Configure WebSocket port for hot module replacement (HMR)
WDS_SOCKET_PORT=3000
FAST_REFRESH=true