Skip to content

Commit 9a449dd

Browse files
committed
convert buffer type explicitly
1 parent 1730434 commit 9a449dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

2025/src/pages/og.png.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { ogImage } from "@/components/OgImage";
22

33
export async function GET() {
4-
const body = await ogImage();
4+
const img = await ogImage();
5+
const body = new Uint8Array(img).buffer;
56

67
return new Response(body, {
78
headers: {

0 commit comments

Comments
 (0)