fix: dont use cdn for twemoji, bake emojis as b64

This commit is contained in:
Jacky Zhao committed 2025-03-28 16:29:33 -07:00
1 parent b397dae951
commit 7ca9dd9a70
3 files changed
+3209 -9

No files matched your search

+2 -1
View File
@@ -55,8 +55,9 @@ async function generateSocialImage(
fonts,
loadAdditionalAsset: async (languageCode: string, segment: string) => {
if (languageCode === "emoji") {
return `data:image/svg+xml;base64,${btoa(await loadEmoji(getIconCode(segment)))}`
return await loadEmoji(getIconCode(segment))
}
return languageCode
},
})