You are currently viewing documentation for version 13 of Next.js.
Functions
getInitialProps
Fetch dynamic data on the server for your React component with getInitialProps.
getServerSideProps
API reference for `getServerSideProps`. Learn how to fetch data on each request with Next.js.
getStaticPaths
API reference for `getStaticPaths`. Learn how to fetch data and generate static pages with `getStaticPaths`.
getStaticProps
API reference for `getStaticProps`. Learn how to use `getStaticProps` to generate static pages with Next.js.
NextRequest and NextResponse
Learn about the server-only helpers for Middleware and Edge API Routes.
useAmp
Enable AMP in a page, and control the way Next.js adds AMP to the page with the AMP config.
useReportWebVitals
useReportWebVitals
useRouter
Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
Was this helpful?