@easy-cms/plugin-multi-tenant
v1.52.2
Published
Multi-tenant Easy CMS: several sites or clients in one CMS, each with its own content, members and roles
Maintainers
Readme
@easy-cms/plugin-multi-tenant
Several sites or clients in one Easy CMS: each tenant has its own documents in the collections you name, its own value of the globals you name, and its own members with a role there. Admins switch tenants at the top of the menu; frontends name their tenant with a header or their domain. Part of Easy CMS, the code-first CMS and app backend for Nuxt and Next.js.
Install
npm install @easy-cms/plugin-multi-tenantOr pnpm add, yarn add or bun add.
Usage
import { multiTenantPlugin } from '@easy-cms/plugin-multi-tenant'
export default defineConfig({
// …
plugins: [multiTenantPlugin({ collections: ['posts', 'pages', 'media'], globals: ['site'] })],
})curl -H 'x-easy-cms-tenant: brand-a' https://cms.example.com/api/cms/postsLinks
Multi-tenant · Documentation (ภาษาไทย) · GitHub
MIT License
