Skip to content
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

feat: add opengraph images with dynamic title #30

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

stefanprobst
Copy link
Contributor

@stefanprobst stefanprobst commented Feb 6, 2025

this pr adds a public endpoint to dynamically generate opengraph images.

images should probably be statically generated at build time and served with cache headers - but this would bloat the docker image even further.

one thing to think about is that any image we want to display on the og image probably needs to live in the public folder (i.e. docker image) - unless we can generate all of them at build time.

this pr generates static opengraph images for events, news, and projects at build time.

TODO:

  • add content hash to og:image url?
  • http caching headers

@stefanprobst stefanprobst marked this pull request as ready for review February 6, 2025 19:33
@stefanprobst
Copy link
Contributor Author

this should now be working - we generate opengraph images at build time for events, news, and projects. note that this will add ~150 MB to the docker image.

@stefanprobst
Copy link
Contributor Author

examples how this currently looks like:

opengraph-image

opengraph-image-2

@PixlTracer opinions?

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