Skip to content

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

1.2 KB
Raw Blame
import { EventClientRenderer } from '~/components/Events/new/EventClientRenderer'
import { breadcrumbs } from '~/lib/breadcrumbs'
import { getMdxEvents, getNotionEvents, getOnDemandMdxEvents } from '~/lib/events'
import { breadcrumbListSchema, serializeJsonLd } from '~/lib/json-ld'
import type { Metadata } from 'next'

import { canonicalAlternates } from '@/lib/canonical'

export const metadata: Metadata = {
  alternates: canonicalAlternates('/events'),
  title: 'View all Supabase events and meetups.',
  description:
    'Find all the upcoming events, webinars and meetups hosted by supabase and its community.',
}

export default async function EventsPage() {
  const [notionEvents, mdxEvents, onDemandMdxEvents] = await Promise.all([
    getNotionEvents(),
    Promise.resolve(getMdxEvents()),
    Promise.resolve(getOnDemandMdxEvents()),
  ])

  return (
    <>
      <script
        type="application/ld+json"
        dangerouslySetInnerHTML={{
          __html: serializeJsonLd(breadcrumbListSchema(breadcrumbs.eventsIndex)),
        }}
      />
      <EventClientRenderer
        notionEvents={notionEvents}
        mdxEvents={mdxEvents}
        onDemandMdxEvents={onDemandMdxEvents}
      />
    </>
  )
}