Update [slug].png.ts
735b1b39
1 file(s) · +2 −4
| 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" |
|
| 11 | 9 | ||
| 12 | - | const monoFontReg = await fs.readFileSync(commitMono400) |
|
| 10 | + | const monoFontReg = await fs.readFileSync("../../../CommitMono-400-Regular.otf") |
|
| 13 | 11 | ||
| 14 | - | const monoFontBold = await fs.readFileSync(commitMono700) |
|
| 12 | + | const monoFontBold = await fs.readFileSync("../../../CommitMono-700-Regular.otf") |
|
| 15 | 13 | ||
| 16 | 14 | const ogOptions: SatoriOptions = { |
|
| 17 | 15 | width: 1200, |