# Portfolio Improvements Summary **Date**: January 8, 2026 **Status**: โœ… All Issues Resolved --- ## ๐ŸŽ‰ Issues Fixed ### 1. Safari `originalFactory.call` Error โœ… **Problem**: Runtime TypeError in Safari when visiting the site during development. **Error Message**: ``` Runtime TypeError undefined is not an object (evaluating 'originalFactory.call') ``` **Root Cause**: - React 19 + Next.js 15.5.9 + Webpack's module concatenation causing factory initialization issues - Safari's stricter module handling exposed the problem - Mixed CommonJS/ES6 module exports in `next.config.ts` **Solution**: 1. Fixed `next.config.ts` to use proper ES6 module syntax (`export default` instead of `module.exports`) 2. Disabled webpack's `concatenateModules` in development mode for Safari compatibility 3. Added proper webpack optimization settings 4. Cleared `.next` build cache 5. Updated Jest configuration for Next.js 15 compatibility **Files Modified**: - โœ… `next.config.ts` - Fixed module exports and webpack config - โœ… `jest.setup.ts` - Updated for Next.js 15 + React 19 - โœ… `jest.config.ts` - Modernized configuration --- ### 2. n8n Webhook Integration โœ… **Problem**: n8n status endpoint returning HTML error page instead of JSON. **Error Message**: ``` Error fetching n8n status: SyntaxError: Unexpected token '<', "