Refactor Docker setup for frontend-only builds by removing server-side API files, creating mock APIs, and updating health check notes. Adjusted Vite configuration for browser compatibility and refined API handling in various components to improve user experience and maintainability.
This commit is contained in:
@ -95,6 +95,7 @@ The build process properly handles:
|
||||
- React Syntax Highlighter
|
||||
- All UI component libraries
|
||||
- TypeScript compilation
|
||||
- **Note**: For Docker builds, server-side dependencies (MySQL, bcrypt, JWT) are temporarily disabled to create a frontend-only demo build
|
||||
|
||||
### Health Checks
|
||||
|
||||
@ -168,6 +169,7 @@ The container uses these volumes:
|
||||
1. **Native dependency errors**: Ensure Docker has enough memory allocated
|
||||
2. **Build timeout**: Increase Docker build timeout in Docker Desktop settings
|
||||
3. **Permission errors**: Check that Docker has access to the project directory
|
||||
4. **Server-side import errors**: The Dockerfile automatically handles server-side imports by creating a frontend-only build
|
||||
|
||||
### Runtime Issues
|
||||
|
||||
|
Reference in New Issue
Block a user