mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Fixes: https://github.com/vercel/next.js/issues/42932 x-ref: [slack thread](https://vercel.slack.com/archives/C03S8ED1DKM/p1668639343426429?thread_ts=1668631260.554489&cid=C03S8ED1DKM) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md`
18 lines
410 B
JavaScript
18 lines
410 B
JavaScript
// force-static should override the `headers()` usage
|
|
// in parent layout
|
|
export const dynamic = 'force-static'
|
|
|
|
export function generateStaticParams() {
|
|
return [{ slug: 'first' }, { slug: 'second' }]
|
|
}
|
|
|
|
export default function Page({ params }) {
|
|
return (
|
|
<>
|
|
<p id="page">/force-static/[slug]</p>
|
|
<p id="params">{JSON.stringify(params)}</p>
|
|
<p id="now">{Date.now()}</p>
|
|
</>
|
|
)
|
|
}
|