mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
fix https://github.com/vercel/next.js/issues/7713#issuecomment-643632270
23 lines
294 B
JavaScript
23 lines
294 B
JavaScript
const Post = () => {
|
|
return (
|
|
<div>
|
|
<h2>POST</h2>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const getStaticProps = async () => {
|
|
return {
|
|
props: {},
|
|
}
|
|
}
|
|
|
|
export const getStaticPaths = async () => {
|
|
return {
|
|
paths: ['/post/1', '/post/2'],
|
|
fallback: true,
|
|
}
|
|
}
|
|
|
|
export default Post
|