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:
  • Getting Started
    • Installation
    • Project Structure
  • Building Your Application
  • API Reference
  • Architecture
    • Accessibility
    • Fast Refresh
    • Next.js Compiler
    • Supported Browsers
    • Turbopack
  • Community
    • Contribution Guide
App RouterAPI Reference

File Conventions

Metadata Files

API documentation for the metadata file conventions.

default.js

API Reference for the default.js file.

error.js

API reference for the error.js special file.

layout.js

API reference for the layout.js file.

loading.js

API reference for the loading.js file.

not-found.js

API reference for the not-found.js file.

page.js

API reference for the page.js file.

Route Segment Config

Learn about how to configure options for Next.js route segments.

route.js

API reference for the route.js special file.

template.js

API Reference for the template.js file.

Last updated June 8, 2023

Previous<Script>NextMetadata Files

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: