mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This case is fixed on `canary`, but has a regression on 15.1. This PR adds a test case that succeeds on `canary` but fails on the backport branch. A fix for the backport branch is forthcoming.
20 lines
350 B
TypeScript
20 lines
350 B
TypeScript
type Props = {
|
|
params: Promise<{ slug: string }>
|
|
}
|
|
|
|
export default async function Page({ params }: Props) {
|
|
const { slug } = await params
|
|
return <div>Hello {slug}</div>
|
|
}
|
|
|
|
export function generateStaticParams() {
|
|
return [
|
|
{ slug: 'a' },
|
|
{ slug: 'b' },
|
|
{ slug: 'c' },
|
|
{ slug: 'd' },
|
|
{ slug: 'e' },
|
|
{ slug: 'f' },
|
|
]
|
|
}
|