Update OG fallback image

This commit is contained in:
gpt-engineer-app[bot]
2025-10-29 17:23:30 +00:00
parent b3c588a1a5
commit 0ac9592cd8
2 changed files with 6 additions and 6 deletions

View File

@@ -26,11 +26,11 @@ export function useOpenGraph({
if (!enabled || !title) return;
// Determine the image to use
let finalImageUrl = '/og-image.png';
let finalImageUrl = 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original';
if (imageId) {
const bannerUrls = getBannerUrls(imageId);
finalImageUrl = bannerUrls.desktop || imageUrl || '/og-image.png';
finalImageUrl = bannerUrls.desktop || imageUrl || 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original';
} else if (imageUrl) {
finalImageUrl = imageUrl;
}
@@ -55,12 +55,12 @@ export function useOpenGraph({
return () => {
updateMetaTag('og:title', 'ThrillWiki - Theme Park & Roller Coaster Database');
updateMetaTag('og:description', 'Explore theme parks and roller coasters worldwide with ThrillWiki - the comprehensive database for enthusiasts');
updateMetaTag('og:image', window.location.origin + '/og-image.png');
updateMetaTag('og:image', 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original');
updateMetaTag('og:type', 'website');
updateMetaTag('twitter:title', 'ThrillWiki - Theme Park & Roller Coaster Database', 'name');
updateMetaTag('twitter:description', 'Explore theme parks and roller coasters worldwide with ThrillWiki - the comprehensive database for enthusiasts', 'name');
updateMetaTag('twitter:image', window.location.origin + '/og-image.png', 'name');
updateMetaTag('twitter:image', 'https://cdn.thrillwiki.com/images/4af6a0c6-4450-497d-772f-08da62274100/original', 'name');
};
}, [title, description, imageUrl, imageId, type, currentUrl, enabled]);
}