Files
Zack TannerandGitHub d12e2e82b7 add test case for intercepting route + catchall + generateStaticParams (#75167)
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.
2025-01-21 16:50:36 -08:00

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' },
]
}