You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(mdx): Disable in-memory cache for development (#14340)
## DESCRIBE YOUR PR
**Problem:**
- Problem: MDX files in /docs directory required server restart to see
changes
- Root Cause: The getFileBySlugWithCache function was caching MDX files
even in development
- Solution: Added development mode check to bypass cache when NODE_ENV
=== 'development'
- Impact: Hot reload now works for .mdx files while preserving
production performance
**Solution**
- Bypass MDX cache in development mode to allow hot reload
- Maintains caching behavior in production for performance
- Resolves issue where MDX changes required server restart
---------
Co-authored-by: Shannon Anahata <[email protected]>
Co-authored-by: Burak Yigit Kaya <[email protected]>
0 commit comments