函数
getInitialProps
使用 getInitialProps 为你的 React 组件在服务器端获取动态数据。
getServerSideProps
Next.js 的 `getServerSideProps` API 参考。了解如何在每次请求时获取数据。
getStaticPaths
`getStaticPaths` 的 API 参考。了解如何使用 `getStaticPaths` 获取数据并生成静态页面。
getStaticProps
`getStaticProps` 的 API 参考。了解如何使用 `getStaticProps` 在 Next.js 中生成静态页面。
NextRequest
NextRequest 的 API 参考。
NextResponse
NextResponse 的 API 参考。
useAmp
在页面中启用 AMP,并使用 AMP 配置控制 Next.js 添加 AMP 到页面的方式。
useReportWebVitals
useReportWebVitals
useRouter
了解更多关于 Next.js 路由器 API 的信息,并在页面中使用 useRouter 钩子访问路由器实例。
userAgent
userAgent 辅助函数扩展了 Web 请求 API,提供了额外的属性和方法,用于与请求中的用户代理对象进行交互。