next.js/test/e2e/app-dir/metadata-dynamic-routes/app/(group)/twitter-image.tsx
twitter-image.tsx28 lines536 B
import { ImageResponse } from 'next/og'

export const alt = 'Twitter'
export const size = { width: 1200, height: 675 }

export default function twitter() {
  return new ImageResponse(
    (
      <div
        style={{
          width: '100%',
          height: '100%',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          fontSize: 128,
          background: 'lavender',
        }}
      >
        group route twitter
      </div>
    ),
    size
  )
}

export const runtime = 'edge'
Quest for Codev2.0.0
/
SIGN IN