You are viewing the docs for the
App Router
(beta)
Next 13
(stable) docs →
`app` directory
(beta) ↓
Next 13
(stable) docs →
Skip to content
Next.js
Next.js Logo
Next.js Logo
Showcase
Docs
Blog
Analytics
Templates
Enterprise
Deploy
Menu
Getting Started
Installation
Upgrade Guide
App Router Roadmap
Building Your Application
Routing
Fundamentals
Defining Routes
Pages and Layouts
Linking and Navigating
Loading UI
Error Handling
Route Handlers
Rendering
Fundamentals
Server and Client Components
Static and Dynamic Rendering
Edge and Node.js Runtimes
Data Fetching
Fundamentals
Fetching
Caching
Revalidating
Mutating
Streaming and Suspense
Generating Static Params
API Routes
Styling
CSS Modules
Tailwind CSS
Global Styles
CSS-in-JS
External Stylesheets
Sass
Optimizing
Images
Fonts
Scripts
OG Image Generation
Static Assets
Lazy Loading
Middleware
Deploying
Environment Variables
Deployment Guide
Configuring
next.config.js
Static Export
TypeScript
Turbopack
ESLint
Absolute Imports and Module Path Aliases
API Reference
Components
Link
Image
Font
Script
File Conventions
Layout
Page
Loading
Error
Template
Head
Not Found
Route
Server Component Functions
cookies
fetch
headers
generateStaticParams
notFound
redirect
NextRequest
NextResponse
Client Component Hooks
useRouter
useParams
useSearchParams
useSelectedLayoutSegment
useSelectedLayoutSegments
usePathname
Edge Runtime
Segment Config Options
Metadata
create-next-app
Next.js CLI
Guides
Upgrading
Version 12
Version 11
Version 10
Version 9
Codemods
Debugging
Accessibility
AMP
Authentication
CMS
Forms
Internationalization
Markdown and MDX
SEO
Testing
SEO