mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
We can now support `next export` for `appDir` because of the new config added in #46744. fixes NEXT-775 ([NEXT-775](https://linear.app/vercel/issue/NEXT-775))
21 lines
382 B
JavaScript
21 lines
382 B
JavaScript
import Link from 'next/link'
|
|
|
|
export const dynamic = 'force-static'
|
|
|
|
export function generateStaticParams() {
|
|
return [{ slug: 'first' }, { slug: 'second' }]
|
|
}
|
|
|
|
export default function Page({ params }) {
|
|
return (
|
|
<main>
|
|
<h1>{params.slug}</h1>
|
|
<ul>
|
|
<li>
|
|
<Link href="/another">Visit another page</Link>
|
|
</li>
|
|
</ul>
|
|
</main>
|
|
)
|
|
}
|