- Add multi-stage Dockerfile with development target - Configure Docker Compose watch for hot-reloading - Set up environment variables for frontend development
13 lines
461 B
Bash
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
|