Documentation
supastarter for Next.jssupastarter for Next.jsWorking with the codebase

Project structure

Learn how the supastarter codebase is structured.

supastarter uses a monorepo structure, which allows you to easily extend your project (for example with a mobile app) and share code and configs between applications.

Basic repository structure

By default the monorepo contains the following apps and packages:

Configuration

Configuration is scoped to individual packages for better isolation. Each package has its own config.ts file:

  • apps/web/config.ts – Web app configuration
  • packages/api/config.ts – API configuration
  • packages/auth/config.ts – Auth configuration
  • packages/i18n/config.ts – i18n configuration
  • packages/mail/config.ts – Mail configuration
  • packages/payments/config.ts – Payments configuration
  • packages/storage/config.ts – Storage configuration

Learn more about configuration in the configuration documentation.