mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
19 lines
272 B
JavaScript
19 lines
272 B
JavaScript
export const getStaticProps = () => {
|
|
return {
|
|
props: {
|
|
hello: 'world',
|
|
},
|
|
}
|
|
}
|
|
|
|
export const getStaticPaths = () => {
|
|
return {
|
|
paths: [],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export default function Page(props) {
|
|
return <p id="slug-page">[slug] page</p>
|
|
}
|