mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
13 lines
236 B
TypeScript
13 lines
236 B
TypeScript
export function generateStaticParams() {
|
|
return [{ id: 'one' }, { id: 'two' }]
|
|
}
|
|
|
|
export default async function Page({
|
|
params,
|
|
}: {
|
|
params: Promise<{ id: string }>
|
|
}) {
|
|
const { id } = await params
|
|
return <p>result: {id}</p>
|
|
}
|