Files
StevenandGitHub b590ec3961 feat: add output: export support for appDir (#47022)
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))
2023-03-14 20:43:46 +00:00

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>
)
}