79144774

Date: 2024-10-31 12:43:04
Score: 1
Natty:
Report link

based on nextjs15 docs, you can do this:

export default async function Page({
  params,
}: {
  params: Promise<{ slug: string }>
}) {
  const slug = (await params).slug
  return <div>My Post: {slug}</div>
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amin Azad