2024-01-30
3403
#nextjs
Abhinav Anshul
168468
109
Jan 30, 2024 â‹… 12 min read

How to structure scalable Next.js project architecture

Abhinav Anshul Doing interesting things on the Web.

Recent posts:

Build A Custom React Native Turbo Module For Android

Build a custom React Native Turbo Module for Android

Build a React Native Turbo Module for Android to access device info like model, IP, uptime, and battery status using native mobile APIs.

Emmanuel John
Feb 27, 2025 â‹… 8 min read
how to measure round-trip time using cURL

How to measure round-trip time (RTT) using cURL

Learn how to measure round-trip time (RTT) using cURL, a helpful tool used to transfer data from or to a server.

David Omotayo
Feb 26, 2025 â‹… 10 min read

React.memo explained: When to use it (and when not to)

React.memo prevents unnecessary re-renders and improves performance in React applications. Discover when to use it, when to avoid it, and how it compares to useMemo and useCallback.

Emmanuel John
Feb 26, 2025 â‹… 9 min read
React useCallback: When And How To Use It For Better Performance

React useCallback: When and how to use it for better performance

Learn how React’s useCallback hook boosts performance by memoizing functions and preventing unnecessary re-renders with practical examples and best practices.

Emmanuel John
Feb 26, 2025 â‹… 6 min read
View all posts

3 Replies to "How to structure scalable Next.js project architecture"

  1. It’s all good stuff, but regarding the file structure and architecture it works until components become a big disorganized lump of everything.

    For medium to large projects, I highly recommend Feature-Sliced design: https://feature-sliced.design/

    Started using it a few months ago and it feels so much better to work with than just components, lib or hooks folders.

  2. Wow, I literally read through the whole thing, nodding along, because (except I use Cypress) we’re on the same page on everything (also node 20 by now) but got to the “integrate LogRocket” expecting the perfect integration guidance and the article just waved good-bye, jumped in an escape pod, and left me watching a 10 second ad as the pod jettisoned itself and sped away.

Leave a Reply