For TypeScript, you can use the GetStaticProps type from next : ... paths we want to pre-render based on posts const paths = posts.map((post) => ({ params: ...
確定! 回上一頁