mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This adds some additional API surface for `build-complete` adapter hook. Wiring up prerenders and additional configs.
17 lines
311 B
TypeScript
17 lines
311 B
TypeScript
export const dynamic = 'force-static'
|
|
|
|
export function generateStaticParams() {
|
|
return [{ slug: 'first' }]
|
|
}
|
|
|
|
export default async function Page({ params }) {
|
|
const { slug } = await params
|
|
return (
|
|
<>
|
|
<p>/isr-app/[slug]</p>
|
|
<p>now: {Date.now()}</p>
|
|
<p>slug: {slug}</p>
|
|
</>
|
|
)
|
|
}
|