Skip to content

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

366 B
Raw Blame
import type { Metadata } from 'next'

import { genFaviconLinks } from './icons'

export const genFaviconData = (basePath: string, route = '/favicon'): Metadata['icons'] => {
  const [icon, apple] = genFaviconLinks(basePath, route)
  return {
    icon: { url: icon.href, type: icon.type, sizes: icon.sizes },
    apple: { url: apple.href, sizes: apple.sizes },
  }
}