Examples: Directus + Next.js Scenarios
Complete walkthroughs for building common application types with this stack. Each scenario shows the full flow from Directus data model to rendered Next.js pages.
Available Scenarios
| Scenario | Description | Key Patterns |
|---|---|---|
| Blog | Content blog with posts, authors, and categories | M2O relations, images, ISR, SEO metadata, RSS feed |
| Product Catalog | E-commerce catalog with products, categories, and filtering | M2M relations, search params, image gallery, dynamic filters |
How to Use
- Pick the scenario closest to what you are building
- Read the full walkthrough in
references/scenarios/ - Adapt the collections, fields, and page structure to your needs
- Follow the
full-featuretemplate for each new feature you add
Each scenario includes:
- Directus collection schema (fields, relations, permissions)
- TypeScript interfaces
- Complete Next.js page code (listing, detail, metadata)
- Image handling patterns
- Revalidation strategy