mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
1933a6beae
Update the implementation of og image generation code to allow special character usage in title. fix #103, fix #88
9 lines
273 B
TypeScript
9 lines
273 B
TypeScript
import generateOgImages from "@utils/generateOgImages";
|
|
import type { APIRoute } from "astro";
|
|
|
|
export const GET: APIRoute = async () => new Response(await generateOgImages());
|
|
|
|
export const getStaticPaths = () => [
|
|
{ params: { ogImage: "generating images with " } },
|
|
];
|