-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open graph dynamic image generation #6357
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self-review
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
this now adds the following to every page here's a comparison of post
do we want to constrict this to only blog posts? right now it's on every page even regular pages |
okay - this is good enough that I'd love a more thorough poke at it |
Lighthouse Results
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
FYI, this branch needs to be rebased |
… the wire as a string we could omit it altogether i suppose too
@ovflowd i need guidance on if any of this is still feasible with static export see https://github.com/nodejs/nodejs.org/actions/runs/8111322926/job/22170364122?pr=6357#step:10:34 - next wants me to statically generate every param - i suppose we have the blog data so it's possible???, but really starts to fight the framework for something that should be dynamic |
No, |
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
@bmuenzenmeyer can you make a hotfix? |
hotfixed via 604b4b4 |
Description
I've started dynamic open graph image generation.
This is still heavily WIP, and I need help landing it.
route.tsx
elsewhere but couldn't figure it out. Vercel examples are way simpler than our structure.This process uses documentation found within https://vercel.com/docs/functions/og-image-generation#getting-started and multiple techniques from https://vercel.com/docs/functions/og-image-generation/og-image-examples combined.
Validation
http://localhost:3000/en/next-data/og?title=Announcing%20the%20new%20Node.js%20website&type=announcement
there are IMAGES! 😄
Related Issues
Check List
npx turbo lint
to ensure the code follows the style guide. And runnpx turbo lint:fix
to fix the style errors if necessary.npx turbo format
to ensure the code follows the style guide.npx turbo test
to check if all tests are passing.