refactor: rename defaultImage.tsx > socialImage.tsx

This commit is contained in:
Ben Schlegel 2023-09-30 12:46:01 +02:00
parent 1ab8dffd0d
commit cd5e8d89d7
No known key found for this signature in database
GPG Key ID: 8BDB8891C1575E22
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import satori, { SatoriOptions } from "satori"
import * as fs from "fs"
import { ImageOptions, SocialImageOptions, getSatoriFont } from "../util/imageHelper"
import sharp from "sharp"
import { defaultImage } from "../util/defaultImage"
import { defaultImage } from "../util/socialImage"
import { JSXInternal } from "preact/src/jsx"
import { unescapeHTML } from "../util/escape"
@ -33,7 +33,6 @@ async function generateSocialImage(opts: ImageOptions, userOpts: SocialImageOpti
fs.writeFileSync(`${imageDir}/${fileName}.${extension}`, compressed)
}
// TODO: mention `description` plugin in docs for max length
const extension = "webp"
const imageDir = "public/static/social-images"