Unverified Commit 24bd08d6 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[docs] fix function signature of og image (#78277)

Fixes the function signature changed in #78200
parent bed56afe
...@@ -252,7 +252,7 @@ To use it, you can import `ImageResponse` from `next/og`: ...@@ -252,7 +252,7 @@ To use it, you can import `ImageResponse` from `next/og`:
```jsx filename="app/about/opengraph-image.js" ```jsx filename="app/about/opengraph-image.js"
import { ImageResponse } from 'next/og' import { ImageResponse } from 'next/og'
export async function GET() { export default function OG() {
return new ImageResponse( return new ImageResponse(
( (
<div <div
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment