Skip to content

added custom og-image#32

Merged
owonwo merged 3 commits intowigxel:masterfrom
andemosa:og-image
Apr 17, 2026
Merged

added custom og-image#32
owonwo merged 3 commits intowigxel:masterfrom
andemosa:og-image

Conversation

@andemosa
Copy link
Copy Markdown
Contributor

@andemosa andemosa commented Apr 15, 2026

Summary

Implements custom dynamic OpenGraph image generation for user profile pages, similar to GitHub's profile OG images.

Changes

  • Added app/api/og-image/[username]/route.tsx endpoint that generates OG images using next/og
  • Updated app/[username]/page.tsx to reference the dynamic OG image URL in metadata
  • Profile OG image includes:
    • User's profile photo (or initials fallback)
    • Full name and username
    • Job title (if available)
    • Short bio (truncated to 120 chars)
    • Wigxel Community footer

Closes #28

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

@andemosa is attempting to deploy a commit to the Joseph Owonwo's projects Team on Vercel.

A member of the Team first needs to authorize it.

@owonwo
Copy link
Copy Markdown
Contributor

owonwo commented Apr 16, 2026

Hi @andemosa

Please can you add a screenshot of the OG Image?

@andemosa
Copy link
Copy Markdown
Contributor Author

andemosa commented Apr 16, 2026

Hi @andemosa

Please can you add a screenshot of the OG Image?

@owonwo

andemosa

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 16, 2026

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

Project Deployment Actions Updated (UTC)
community-app Ready Ready Preview, Comment Apr 17, 2026 2:48pm

@owonwo
Copy link
Copy Markdown
Contributor

owonwo commented Apr 16, 2026

@andemosa I noticed the below OG Image URL requires authentication. I believe it should be public.

https://community-app-git-fork-andemosa-3346f3-joseph-owonwos-projects.vercel.app/api/og-image/chenwei_data

@andemosa
Copy link
Copy Markdown
Contributor Author

@andemosa I noticed the below OG Image URL requires authentication. I believe it should be public.

https://community-app-git-fork-andemosa-3346f3-joseph-owonwos-projects.vercel.app/api/og-image/chenwei_data

@owonwo I have made the og image api route public

@owonwo owonwo merged commit 50dbdc1 into wigxel:master Apr 17, 2026
3 checks passed
@andemosa andemosa deleted the og-image branch April 20, 2026 10:42
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.

Create a custom OG Image from the user's avatar, fullname, and username.

2 participants