mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
20 lines
303 B
TypeScript
20 lines
303 B
TypeScript
export const revalidate = 120
|
|
|
|
export function generateStaticParams() {
|
|
return [
|
|
{
|
|
slug: 'first',
|
|
},
|
|
]
|
|
}
|
|
|
|
export default async function Page(props) {
|
|
const params = await props.params
|
|
return (
|
|
<>
|
|
<p>/app-ssg/[slug]</p>
|
|
<p>{JSON.stringify(params)}</p>
|
|
</>
|
|
)
|
|
}
|