From 11e7198ec9802dfb0b174e17481a775dc90aee60 Mon Sep 17 00:00:00 2001 From: Jackson Goode Date: Thu, 8 Feb 2024 10:48:29 -0800 Subject: [PATCH] API change --- pages/api/social-image.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/api/social-image.tsx b/pages/api/social-image.tsx index 7c10f3358a..951dbc0ccd 100644 --- a/pages/api/social-image.tsx +++ b/pages/api/social-image.tsx @@ -1,6 +1,7 @@ import * as React from 'react' import { ImageResponse } from 'next/og' +import type { NextApiRequest } from 'next' import { api, apiHost, rootNotionPageId } from '@/lib/config' import { NotionPageInfo } from '@/lib/types' @@ -15,7 +16,7 @@ const interBoldFontP = fetch( export const runtime = 'edge' -export default async function GET(req: Request) { +export async function GET(req: NextApiRequest) { const { searchParams } = new URL(req.url) const pageId = searchParams.get('id') || rootNotionPageId if (!pageId) {