next.js/test/e2e/og-api/app/pages/api/og-wrong-runtime.js
og-wrong-runtime.js23 lines417 B
// /pages/api/og.jsx
import { ImageResponse } from 'next/og'

export default function () {
  return new ImageResponse(
    (
      <div
        style={{
          width: '100%',
          height: '100%',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          fontSize: 128,
          background: 'lavender',
        }}
      >
        Hello!
      </div>
    )
  )
}
Quest for Codev2.0.0
/
SIGN IN