Skip to content

Commit 7ac0242

Browse files
GuySerfatyclaude
andauthored
fix: add absolute URLs for og:image and og:url meta tags for WhatsApp previews (#63)
WhatsApp link previews require absolute URLs for Open Graph image and url meta tags. Changed og:image from relative path to absolute URL (https://expo-air.dev/og-image.png) and added missing og:url tag. This fixes link preview images not appearing when sharing the website on WhatsApp. Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 6424976 commit 7ac0242

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ export const metadata: Metadata = {
1919
description:
2020
'AI-powered on-device development SDK for React Native/Expo.',
2121
siteName: 'expo-air',
22+
url: 'https://expo-air.dev',
2223
type: 'website',
2324
images: [
2425
{
25-
url: '/og-image.png',
26+
url: 'https://expo-air.dev/og-image.png',
2627
width: 1200,
2728
height: 630,
2829
type: 'image/png',
@@ -34,7 +35,7 @@ export const metadata: Metadata = {
3435
title: 'expo-air - Vibe Coding for React Native',
3536
description:
3637
'AI-powered on-device development SDK for React Native/Expo.',
37-
images: ['/og-image.png'],
38+
images: ['https://expo-air.dev/og-image.png'],
3839
},
3940
};
4041

0 commit comments

Comments
 (0)