Skip to main content

Source Directory (src/)

The src/ directory contains all application source code organized by functionality and concern.

src/
├── actions/ # Server actions for mutations
├── app/ # Next.js App Router pages and routes
├── components/ # React components
├── context/ # React Context providers
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries and helpers
├── middleware/ # Route protection and validation
├── services/ # Data access layer
├── types/ # TypeScript type definitions
└── middleware.ts # Next.js middleware entry point