fix: update auto-gen OG images to allow special char usage in title

Update the implementation of og image generation code to allow special character usage in title.

fix #103, fix #88
This commit is contained in:
satnaing
2023-09-15 22:18:02 +06:30
committed by Sat Naing
parent 6b8bba1612
commit 1933a6beae
4 changed files with 43 additions and 30 deletions
+8
View File
@@ -0,0 +1,8 @@
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 " } },
];