Skip to content

Commit

Permalink
API change
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Feb 8, 2024
1 parent 1b7f9d4 commit 11e7198
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/api/social-image.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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) {
Expand Down

0 comments on commit 11e7198

Please sign in to comment.