mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This expands test suite for deferred entries experimental handling and fixes missing handling for metadata routes and route handlers when building the non-deferred entries.
15 lines
348 B
TypeScript
15 lines
348 B
TypeScript
export function generateStaticParams() {
|
|
return [{ slug: 'alpha' }, { slug: 'beta' }]
|
|
}
|
|
|
|
type StaticParamsPageProps = {
|
|
params: Promise<{ slug: string }>
|
|
}
|
|
|
|
export default async function StaticParamsPage({
|
|
params,
|
|
}: StaticParamsPageProps) {
|
|
const { slug } = await Promise.resolve(params)
|
|
return <h1>Generated Static Param: {slug}</h1>
|
|
}
|