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
feat: Enhance Open Graph image resolution and caching logic
- Added directory existence check for mdx-images to prevent errors when accessing images.
- Improved error handling and logging for image resolution failures.
- Updated asset caching logic to handle Vercel deployment scenarios, ensuring images are correctly managed in read-only environments.
- Enhanced overall robustness of the image resolution process by returning null when images are not found, allowing for fallback to default images.
// If we can't create the directory (e.g., read-only filesystem during static generation),
545
+
// continue anyway - images should already exist from build time
546
+
// eslint-disable-next-line no-console
547
+
console.warn('Could not create mdx-images directory:',outdir,(easError).message);
548
+
}
535
549
536
550
// If the file contains content that depends on the Release Registry (such as an SDK's latest version), avoid using the cache for that file, i.e. always rebuild it.
537
551
// This is because the content from the registry might have changed since the last time the file was cached.
0 commit comments