Skip to content

fix: add explicit OG images to all pages to prevent NocoDB logos appearing in social previews#111

Merged
SimonBurmer merged 2 commits intomainfrom
fix/og-image-metadata
Apr 22, 2026
Merged

fix: add explicit OG images to all pages to prevent NocoDB logos appearing in social previews#111
SimonBurmer merged 2 commits intomainfrom
fix/og-image-metadata

Conversation

@SimonBurmer
Copy link
Copy Markdown
Collaborator

@SimonBurmer SimonBurmer commented Apr 22, 2026

Next.js replaces (not merges) the parent layout's openGraph when a child page defines its own. Every page was missing the images field, so social-media crawlers fell back to scraping page content and picked up NocoDB partner/startup logos (Nvidia, Lovable, etc.) instead of the START Munich logo.

Summary by CodeRabbit

Release Notes

  • New Features
    • Enhanced social media sharing previews across all pages with optimized Open Graph image configuration, ensuring consistent and correct preview display when links are shared on social platforms.

…aring in social previews

Next.js replaces (not merges) the parent layout's openGraph when a child page
defines its own. Every page was missing the images field, so social-media
crawlers fell back to scraping page content and picked up NocoDB partner/startup
logos (Nvidia, Lovable, etc.) instead of the START Munich logo.
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
start-munich Ready Ready Preview, Comment Apr 22, 2026 9:26pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 22, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ac8ad0d0-1ac6-4e76-a728-f08b0477a6b4

📥 Commits

Reviewing files that changed from the base of the PR and between 29fa0da and 8f77541.

📒 Files selected for processing (13)
  • app/about-us/page.tsx
  • app/events/page.tsx
  • app/for-partners/page.tsx
  • app/join-start/2026/page.tsx
  • app/labs/page.tsx
  • app/member-journey/page.tsx
  • app/member-network/page.tsx
  • app/members/page.tsx
  • app/page.tsx
  • app/partners/page.tsx
  • app/startup-details/[id]/page.tsx
  • app/startups/page.tsx
  • lib/metadata.ts

📝 Walkthrough

Walkthrough

This pull request introduces a shared OG_IMAGES constant in lib/metadata.ts and wires it into the Open Graph metadata across 11 application pages, ensuring consistent social media preview images without duplicating image configuration.

Changes

Cohort / File(s) Summary
OpenGraph Images Configuration
app/page.tsx, app/about-us/page.tsx, app/members/page.tsx, app/events/page.tsx, app/for-partners/page.tsx, app/labs/page.tsx, app/partners/page.tsx, app/startups/page.tsx, app/member-journey/page.tsx, app/member-network/page.tsx, app/join-start/2026/page.tsx, app/startup-details/[id]/page.tsx
Each page imports OG_IMAGES and sets it to metadata.openGraph.images for consistent social media preview images.
Metadata Constant
lib/metadata.ts
Exports new OG_IMAGES array constant containing image URL, dimensions (width/height), and alt text for reuse across pages.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Poem

🐰 A rabbit hops through pages bright,
With shared OG images in sight,
No duplication, just one constant true,
Social previews now shine through and through! 🖼️✨

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fix/og-image-metadata

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@SimonBurmer SimonBurmer merged commit b090127 into main Apr 22, 2026
1 of 3 checks passed
@SimonBurmer SimonBurmer deleted the fix/og-image-metadata branch April 22, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant