This commit is contained in:
Jacky Zhao
2025-03-12 22:26:39 -07:00
parent c5a8b199ae
commit 1fb7756c49
3 changed files with 33 additions and 18 deletions

View File

@@ -115,9 +115,7 @@ export const myImage: SocialImageOptions["imageStructure"] = (...) => {
> const bodyWeight: FontWeight = 400
>
> const [header, body] = await Promise.all(
> [headerFont, bodyFont].map((font) =>
> fs.promises.readFile(path.resolve(font))
> ),
> [headerFont, bodyFont].map((font) => fs.promises.readFile(path.resolve(font))),
> )
>
> return [