Files
MyBlog-Next/src/pages/[ogImage].png.ts
T
satnaing 1933a6beae 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
2023-09-26 02:04:11 +06:30

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 " } },
];