mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
21 lines
346 B
JavaScript
21 lines
346 B
JavaScript
export const getStaticProps = ({ params }) => {
|
|
return {
|
|
props: {
|
|
random: Math.random(),
|
|
params: params || null,
|
|
},
|
|
revalidate: 1,
|
|
}
|
|
}
|
|
|
|
export const getStaticPaths = () => {
|
|
return {
|
|
paths: [],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export default function Page(props) {
|
|
return <p id="props">{JSON.stringify(props)}</p>
|
|
}
|