File size: 419 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import Link from 'next/link'
export const dynamic = 'force-static'
export function generateStaticParams() {
return [{ slug: 'first' }, { slug: 'second' }]
}
export default async function Page(props) {
const params = await props.params
return (
<main>
<h1>{params.slug}</h1>
<ul>
<li>
<Link href="/another">Visit another page</Link>
</li>
</ul>
</main>
)
}
|