函数
getInitialProps
使用 getInitialProps 为你的 React 组件在服务端获取动态数据。
getServerSideProps
API `getServerSideProps` 参考文档。了解如何在 Next.js 中通过每次请求获取数据。
getStaticPaths
API `getStaticPaths` 参考文档。了解如何使用 `getStaticPaths` 获取数据并生成静态页面。
getStaticProps
API `getStaticProps` 参考文档。了解如何使用 `getStaticProps` 在 Next.js 中生成静态页面。
NextRequest 与 NextResponse
了解专用于中间件和边缘 API 路由的服务端辅助工具。
useAmp
在页面中启用 AMP (Accelerated Mobile Pages),并通过 AMP 配置控制 Next.js 向页面添加 AMP 的方式。
useReportWebVitals
useReportWebVitals 钩子函数
useRouter
了解 Next.js 路由器的 API,并通过 useRouter 钩子在页面中访问路由实例。