i was working with a large-scale project built using Next. js and hit this wall where things got messy real fast. at first it seemed straightforward - create-next-app, write pages & api routes. but then the app started to grow wayyy beyond what i had planned.
ended up spending quite some time figuring out how best structure everything for maintainability as features piled on top of each other like snowball fights ️. key takeaway: start with a solid reusable architecture early and keep it modular. otherwise, refactoring later will be hell
anyone else grappled with this? what strategies did you use to avoid the mess?
any tips or tools for keeping things organized in big Next. js projects would rock!
more here:
https://www.freecodecamp.org/news/reusable-architecture-for-large-nextjs-applications/