Back to list

Mandatory file-based routing causing accidental code bundling

5/10 Medium

The requirement that each page must have a page.tsx file can be confusing and may inadvertently lead to server-only code being bundled into client bundles, creating security and performance issues.

Category
architecture
Workaround
hack
Stage
build
Freshness
persistent
Scope
framework
Recurring
No
Buyer Type
team
Maintainer
slow

Sources

Collection History

Query: “What are the most common pain points with Next.js in 2025?3/27/2026

The requirement that each page have a page.tsx file can be confusing and may lead to accidental bundling of server-only code into client bundles.

Created: 3/27/2026Updated: 3/27/2026