Export `getStaticProps` for build-time data and `getStaticPaths` for dynamic pages. Use `fallback: 'blocking'` or `true` when new paths may be generated after the build, and set `revalidate` for ISR when content changes periodically. Return only serializable props, import services directly instead of fetching your own API route, and verify the generated paths and revalidation behavior with a production build.
Installs into .claude/skills of the current project.
Are you the author of Nextjs Pages Router?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-nextjs-pages-router-5a3c87a6)
Export `getStaticProps` for build-time data and `getStaticPaths` for dynamic pages. Use `fallback: 'blocking'` or `true` when new paths may be generated after the build, and set `revalidate` for ISR when content changes periodically. Return only serializable props, import services directly instead of fetching your own API route, and verify the generated paths and revalidation behavior with a production build.