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

fix: use server storage for fonts #151

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Conversation

harlan-zw
Copy link
Collaborator

@harlan-zw harlan-zw commented Jan 27, 2024

Fixes #147, #148, #63, #131

Previously we would make a HTTP request to the API to resolve fonts at runtime. This change leverages the server storage for fonts. We didn't use this solution originally as there was issues around using binary data in storage (which we can use a workaround for), reduce the server bundle size, and that we do need to use runtime for some fonts (those defined on defineOgImage).

Now all fonts are bundled within the server bundle of code, this will increase the server js size but this shouldn't effect performance afaik.

@harlan-zw harlan-zw merged commit 123ab97 into main Jan 29, 2024
1 check passed
@harlan-zw harlan-zw changed the title fix: server storage for fonts fix: use server storage for fonts Jan 29, 2024
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.

https://0.0.0.0:3000/__og-image__/font/Inter/400.ttf" - 404 on production
1 participant