import { redirect } from 'next/navigation'

/**
 * Permanent redirect: canonical TLD pages live under /discover/[tld].
 * Keeping /tld/[tld] for backwards compatibility.
 */
export default async function TldPage({
  params,
}: {
  params: Promise<{ tld: string }>
}) {
  const { tld } = await params
  redirect(`/discover/${String(tld).toLowerCase()}`)
}

