mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
22 lines
424 B
JavaScript
22 lines
424 B
JavaScript
import Link from 'next/link'
|
|
|
|
export const dynamicParams = false
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
return (
|
|
<>
|
|
<Link
|
|
href={
|
|
params.slug === 'slug1'
|
|
? '/static-mpa-navigation/slug2'
|
|
: '/basic-route'
|
|
}
|
|
>
|
|
To next
|
|
</Link>
|
|
<p id={`static-${params.slug}`}>static {params.slug}</p>
|
|
</>
|
|
)
|
|
}
|