Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

438 B
Raw Blame
import { MISC_URL } from '~/lib/constants'

export function generateOpenGraphImageMeta({
  type,
  title,
  description,
}: {
  type: string
  title: string
  description?: string
}) {
  return {
    url: `${MISC_URL}/functions/v1/og-images?site=docs&type=${encodeURIComponent(type)}&title=${encodeURIComponent(title)}&description=${encodeURIComponent(description ?? 'undefined')}`,
    width: 800,
    height: 600,
    alt: title,
  }
}