DEV Community

Cover image for Exploring Next.js 16 File System Conventions
Ganesh Tidake
Ganesh Tidake

Posted on

Exploring Next.js 16 File System Conventions

πŸ“‚ Exploring Next.js 16 File System Conventions

I recently started playing with Next.js 16 experimental features, especially the new file-system conventions.

At first glance, it might seem like a small shift β€” but once you dive in, you realize how much cleaner the developer experience has become.


🧱 Unified app/ directory

The entire app now lives under app/, including routes, layouts, loading, and API endpoints.


app/
β”œβ”€ layout.tsx
β”œβ”€ page.tsx
β”œβ”€ api/
β”‚   β”œβ”€ users/
β”‚   β”‚   └─ route.ts

Enter fullscreen mode Exit fullscreen mode


`

No more pages/api. Everything feels connected and much easier to reason about.


βš™οΈ Co-located Components

You can mix server and client components in the same directory.

The compiler figures it out automatically based on context β€” finally, no more β€œuse client” chaos everywhere.


🧩 route.config.ts

Every segment can now have its own small configuration file:

ts
export const revalidate = 30
export const dynamicParams = "auto"
`

That means cleaner routing rules without global clutter.


πŸ’¬ My takeaway

Next.js 16 feels like what we’ve been waiting for since the App Router arrived.
File-system-driven architecture finally feels consistent and predictable.

I wrote a deeper breakdown on my blog if you want full examples and structure visuals πŸ‘‡
πŸ‘‰ ganeshtidake.site/blog/nextjs-16-file-system-conventions

Top comments (0)