Update [slug].png.ts
b995570b
Ok maybe will work now
1 file(s) · +2 −2
Ok maybe will work now
| 7 | 7 | import { getFormattedDate } from "@/utils"; |
|
| 8 | 8 | import fs from "fs"; |
|
| 9 | 9 | ||
| 10 | - | const monoFontReg = await fs.readFile("/CommitMono-400-Regular.otf") |
|
| 10 | + | const monoFontReg = await fs.readFileSync("/CommitMono-400-Regular.otf") |
|
| 11 | 11 | ||
| 12 | - | const monoFontBold = await fs.readFile("/CommitMono-700-Regular.otf") |
|
| 12 | + | const monoFontBold = await fs.readFileSync("/CommitMono-700-Regular.otf") |
|
| 13 | 13 | ||
| 14 | 14 | const ogOptions: SatoriOptions = { |
|
| 15 | 15 | width: 1200, |