Config
`@multitenant/config` — load and validate tenants.config.json.
Load and validate tenants.config.json with Zod plus cross-field checks. Same rules as multitenant check. Depends on @multitenant/core for shared types.
Install
npm install @multitenant/configMain APIs
loadTenantsConfig(path?)— read file, parse, validate; throwsInvalidTenantsConfigErroron failurevalidateTenantsConfig(data)— validate an in-memory object
See also
- Configuration — field reference for
tenants.config.json - CLI —
multitenant checkuses this validation path @multitenant/core—createTenantRegistryaccepts parsed config