For TypeScript, you can use the GetStaticProps type from next : ... Files can be read directly from the filesystem in getStaticProps .
確定! 回上一頁