This post discusses an opinionated project structure for Next.js enterprise applications. It focuses on managing code volume, state management, and flow control to prevent programmer purgatory. The post suggests using a 'src' directory, breaking down the directory further into logical pieces, and using TypeScript configuration paths.

9m read timeFrom blog.dennisokeeffe.com
Post cover image
Table of contents
PrerequisitesGetting startedOpting for a src directoryBreaking up our src folderSetting up TypeScript configuration pathsBreaking the default app upsrc/common/components/marketing/Cardsrc/common/components/marketing/Footersrc/common/components/marketing/SimpleGridsrc/common/stylessrc/common/components/modules/Homesrc/pagesRunning the app one last timeSummaryResources and further reading
6 Comments

Sort: