NextjsLogotypeNextjsLogotype
  • NextjsLogotypeNextjsLogotype

    Latest

    The framework for building agents

    Frameworks

    • Svelte
    • Nuxt
    • Nitro

    SDKs

    • AI SDK
    • Chat SDK
    • Flags SDK
    • Workflow SDK

    Other

    • Turborepo
    • shadcn/ui
    • SWR
    • just-bash
    • deepsec
  • Docs
  • Learn
  • Showcase
  • Blog
  • Templates
  • Deploy
DocsLearnShowcaseBlogTemplatesDeployGitHub
Vercel OSS

Latest

  • eve

Frameworks

  • Svelte
  • Nuxt
  • Nitro

SDKs

  • AI SDK
  • Chat SDK
  • Flags SDK
  • Workflow SDK

Other

  • Turborepo
  • shadcn/ui
  • SWR
  • just-bash
  • deepsec
Select a display theme:
  • Building Your Application
  • API Reference
  • Getting Started
    • Installation
    • Project Structure
  • Architecture
    • Accessibility
    • Fast Refresh
    • Next.js Compiler
    • Supported Browsers
    • Turbopack
  • Community
    • Contribution Guide
Pages RouterAPI Reference

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.

Last updated June 28, 2023

Previous<Script>NextgetInitialProps

Get started

DocsSupport PolicyLearnShowcaseBlogTeamAnalyticsNext.js ConfPreviewsEvals

More

Next.js CommerceContact SalesCommunityGitHubReleasesTelemetryGovernanceEcosystem Working Group

About Vercel

About VercelNext.js + VercelOpen Source SoftwareGitHubBlueskyX

Legal

Privacy Policy

Subscribe to our newsletter

Stay updated on new releases and features, guides, and case studies.

Select a display theme: