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
refactor: Simplify Open Graph image URL resolution logic
- Refactored the `resolveOgImageUrl` function to remove asynchronous operations, improving performance and clarity.
- Updated the logic to handle image paths more efficiently, ensuring that fallback mechanisms are in place when images are not found.
- Enhanced the integration of the image resolution function within the metadata generation process, streamlining the handling of custom and default images.
// If we can't create the directory (e.g., read-only filesystem during static generation),
545
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
546
}
549
547
550
548
// 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.
0 commit comments