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

Open Graph Image font declaration moved to correct place #53998

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

kylemcd
Copy link
Contributor

@kylemcd kylemcd commented Aug 14, 2023

When implementing opengraph-image in my personal-site-project. I was consistently running into issues where custom fonts would either only work locally or only work on vercel. To me it seemed like differences in pathing in edge vs nodejs runtimes. After digging around I found issue #48081, more specifically this comment where moving the fetch for the font into the Image function solved the issue.

I'm not sure if this is 100% the correct fix, or if this is an issue that needs to be solved in another way. If that's not the case this PR updates the documentation around opengraph-image to have the fetch for custom fonts inside of the Image function.

@kylemcd kylemcd requested review from timneutkens, ijjk, shuding, styfle, huozhi and a team as code owners August 14, 2023 15:01
@styfle styfle added the CI approved Approve running CI for fork label Aug 14, 2023
@kodiakhq kodiakhq bot merged commit 3d569bd into vercel:canary Aug 14, 2023
altano added a commit to altano/alan.norbauer.com that referenced this pull request Aug 15, 2023
altano added a commit to altano/alan.norbauer.com that referenced this pull request Aug 16, 2023
altano added a commit to altano/alan.norbauer.com that referenced this pull request Aug 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI approved Approve running CI for fork locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants