Update [slug].png.ts
1f82f40b
1 file(s) · +4 −2
| 6 | 6 | import siteConfig from "@/site-config"; |
|
| 7 | 7 | import { getFormattedDate } from "@/utils"; |
|
| 8 | 8 | import fs from "fs"; |
|
| 9 | + | import commitMono400 from "/CommitMono-400-Regular.otf" |
|
| 10 | + | import commitMono700 from "/CommitMono-700-Regular.otf" |
|
| 9 | 11 | ||
| 10 | - | const monoFontReg = await fs.readFileSync("/CommitMono-400-Regular.otf") |
|
| 12 | + | const monoFontReg = await fs.readFileSync(commitMono400) |
|
| 11 | 13 | ||
| 12 | - | const monoFontBold = await fs.readFileSync("/CommitMono-700-Regular.otf") |
|
| 14 | + | const monoFontBold = await fs.readFileSync(commitMono700) |
|
| 13 | 15 | ||
| 14 | 16 | const ogOptions: SatoriOptions = { |
|
| 15 | 17 | width: 1200, |