mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
We've supported `export const config = { ... }` to sepecify `runtime`
etc. configs for pages under `app/` for a while. This PR is going to
drop it and only support `export const [config name] = [config value]`
per config
Add a warning if the legacy usage is detectd
Closes NEXT-1016
21 lines
387 B
JavaScript
21 lines
387 B
JavaScript
import Link from 'next/link'
|
|
|
|
export const dynamicParams = false
|
|
|
|
export default function Page({ 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>
|
|
</>
|
|
)
|
|
}
|