Thanks for this guide! Do you usually organize layouts per feature or keep a few global layouts for the whole app?
Next.js Folder Zen: Mastering the app/ Directory
Gavin CettoloLeader
●15 ●21 ●73
calendar_today
• schedule5 min read
— Originally published at dev.to
3 Comments
Gavin Cettolo
•
@[James Dayal]
Thanks James, great question.
I tend to start with a small number of global layouts, and only move toward feature-specific ones when there’s a clear need.
In practice, I usually split layouts when:
- different sections have clearly different UX (e.g. marketing vs dashboard)
- access patterns change (public vs authenticated)
- a layout starts accumulating too many conditional branches
If a layout needs a lot of “if this, then that”, it’s usually a sign it’s trying to do too much.
So my approach is:
start simple → keep layouts global
introduce feature layouts → when complexity becomes real
This keeps the structure easier to understand early on, without blocking scalability later.
Please log in to add a comment.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Early Builders
chevron_left
13Posts
80Comments
14Connections
I bridge the gap between complex software engineering and high-impact business strategy.
As a Full-S... Show moreI bridge the gap between complex software engineering and high-impact business strategy.
As a Full-Stack & Platform Engineer with 9 years of experience (and a recently completed MBA with honors), I don’t just write code, I build scalable digital ecosystems designed for long-term maintainability and business growth.
My expertise lies at the intersection of Product Engineering and System Architecture. I specialize in transforming fragmented technical debt into streamlined, high-performance platforms. I believe that Clean Code isn't just an aesthetic choice; it’s a form of respect for the team, the project, and the future of the business.
In my current role, I spearheaded a complete architectural redesign and CI/CD overhaul, resulting in:
• Efficiency: 95% reduction in infrastructure and platform costs.
• Velocity: Increased deployment frequency from bi-weekly to multiple times per day.
• Agility: Reduced lead time for changes by >60%.
• Reliability: Maintained 99.9% platform uptime with 40% faster incident resolution.
Technical Core:
• Frontend: React, Next.js, TypeScript
• Backend & Logic: Node.js, Python, OOP Patterns, System Design
• DevOps & Platform: CI/CD Pipelines, Docker, Platform Engineering
Beyond the stack, I am a "Builder" who enjoys coordinating cross-functional teams. My MBA has sharpened my ability to align technical roadmaps with marketing, operations, and ROI goals. Whether I'm conducting a code review or presenting a scaling strategy to stakeholders, my focus remains the same: Engineering Excellence that drives Business Value. Show less
As a Full-S... Show moreI bridge the gap between complex software engineering and high-impact business strategy.
As a Full-Stack & Platform Engineer with 9 years of experience (and a recently completed MBA with honors), I don’t just write code, I build scalable digital ecosystems designed for long-term maintainability and business growth.
My expertise lies at the intersection of Product Engineering and System Architecture. I specialize in transforming fragmented technical debt into streamlined, high-performance platforms. I believe that Clean Code isn't just an aesthetic choice; it’s a form of respect for the team, the project, and the future of the business.
In my current role, I spearheaded a complete architectural redesign and CI/CD overhaul, resulting in:
• Efficiency: 95% reduction in infrastructure and platform costs.
• Velocity: Increased deployment frequency from bi-weekly to multiple times per day.
• Agility: Reduced lead time for changes by >60%.
• Reliability: Maintained 99.9% platform uptime with 40% faster incident resolution.
Technical Core:
• Frontend: React, Next.js, TypeScript
• Backend & Logic: Node.js, Python, OOP Patterns, System Design
• DevOps & Platform: CI/CD Pipelines, Docker, Platform Engineering
Beyond the stack, I am a "Builder" who enjoys coordinating cross-functional teams. My MBA has sharpened my ability to align technical roadmaps with marketing, operations, and ROI goals. Whether I'm conducting a code review or presenting a scaling strategy to stakeholders, my focus remains the same: Engineering Excellence that drives Business Value. Show less
More From Gavin Cettolo
Related Jobs
- Junior Mobile Application DeveloperCapgemini · Full time · Dallas, TX
- Mobile App DeveloperKforce Technology Staffing · Full time · Atlanta, GA
- Applications EngineerJohnson Controls · Full time · Waynesboro, PA
Commenters (This Week)
wadethomastt
3 comments
Alen Joy
3 comments
muhammadali
2 comments
Contribute meaningful comments to climb the leaderboard and earn badges!