mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
18 lines
298 B
JavaScript
18 lines
298 B
JavaScript
export const dynamicParams = false
|
|
|
|
export default async function Page({ params }) {
|
|
const { slug } = await params
|
|
return <p>Test {slug.join('/')}</p>
|
|
}
|
|
|
|
export function generateStaticParams() {
|
|
return [
|
|
{
|
|
slug: ['foo', 'foo'],
|
|
},
|
|
{
|
|
slug: ['foo', 'bar'],
|
|
},
|
|
]
|
|
}
|