next.js/test/e2e/app-dir/app-esm-js/app/opengraph-image.js
opengraph-image.js24 lines473 B
import { ImageResponse } from 'next/og'

export default function OpenGraphImage() {
  return new ImageResponse(
    (
      <div
        style={{
          width: 1200,
          height: 630,
          backgroundColor: '#000',
          color: '#fff',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          flexDirection: 'column',
          fontFamily: 'sans-serif',
        }}
      >
        OG
      </div>
    )
  )
}
Quest for Codev2.0.0
/
SIGN IN