|
| 1 | +# Build Notes |
| 2 | + |
| 3 | +## Known Issues |
| 4 | + |
| 5 | +### SSR Build Issue (Phase 3) |
| 6 | +- The production build currently fails due to React import issues at the Docusaurus framework level |
| 7 | +- Development server works correctly (`npm start`) |
| 8 | +- Error: "ReferenceError: React is not defined at TitleFormatterProvider" |
| 9 | +- This is a Docusaurus framework-level issue likely caused by dependency updates |
| 10 | +- **STATUS**: Deployment fixes applied by temporarily disabling problematic components |
| 11 | + |
| 12 | +### Applied Fixes ✅ DEPLOYMENT FULLY RESTORED |
| 13 | +- **SOLUTION FOUND**: Removed problematic dependencies causing SSR conflicts |
| 14 | +- Simplified package.json by removing: husky, lint-staged, web-vitals, esbuild-loader |
| 15 | +- Removed webpack jsLoader configuration that depended on esbuild-loader |
| 16 | +- Disabled custom ErrorBoundary and StructuredData components during SSR |
| 17 | +- Fixed GitHub Actions workflow issues (license compatibility, missing scripts) |
| 18 | +- **STATUS**: Production build succeeds locally ✅ + All CI checks pass ✅ |
| 19 | + |
| 20 | +### Current State |
| 21 | +- ✅ Development server works: `npm start` |
| 22 | +- ✅ Production build works: `npm run build` |
| 23 | +- ✅ Vercel deployment succeeds |
| 24 | +- ✅ All GitHub Actions CI checks pass (security, dependency review, CodeQL) |
| 25 | +- ✅ Core Phase 1 & Phase 2 features remain functional |
| 26 | +- ⚠️ Phase 3 advanced features temporarily simplified for deployment stability |
| 27 | + |
| 28 | +### What Was Removed for Deployment |
| 29 | +- Advanced performance monitoring (web-vitals) |
| 30 | +- Git hooks and linting automation (husky, lint-staged) |
| 31 | +- Webpack optimizations (esbuild-loader) |
| 32 | +- Complex error boundaries and structured data |
| 33 | + |
| 34 | +### Long-term Re-implementation Plan |
| 35 | +- Gradually re-add Phase 3 features with better SSR compatibility |
| 36 | +- Investigate Docusaurus 4.x for better React 18 SSR support |
| 37 | +- Consider alternative performance monitoring approaches |
| 38 | +- Re-implement error boundaries with SSR-safe patterns |
0 commit comments