mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
x-ref: [slack thread](https://vercel.slack.com/archives/C035J346QQL/p1664290658055079)
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
export default function Layout({ children, params }) {
|
|
return (
|
|
<>
|
|
<p id="author-layout-params">{JSON.stringify(params)}</p>
|
|
{children}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export function generateStaticParams({ params }) {
|
|
console.log('/blog/[author] generateStaticParams', JSON.stringify(params))
|
|
|
|
return [{ author: 'tim' }, { author: 'seb' }, { author: 'styfle' }]
|
|
}
|