Spaces
Configure content spaces for your application
Spaces represent one of the most powerful and flexible architectural concepts in NestSaaS. Each space functions as an independent content domain with its own articles, groups, categories, and tags, allowing you to organize different types of content within a single application.
The spaces configuration is a critical component that defines the structure and organization of your application's content sections. This configuration serves as the foundation for your content architecture.
During initialization, Prisma scripts utilize this configuration to seed the space data in your database, establishing the core content structure of your application.
Location
/config/spaces.ts
Key Components
Space Definition
Each space has the following structure:
Spaces Groups
Usage
After configuring your spaces, you can add them to the navigation configuration in the site settings as needed.
Space Types
- directories: Used for content that should be displayed in a directory format (like products, resources)
- basic: Used for simpler content pages (like news, blog posts)
Customization
- Add new spaces by extending the appropriate array
- Ensure slug values are URL-friendly and unique
- The first space in the combined array becomes the default space