Multitenant

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/config

Main APIs

  • loadTenantsConfig(path?) — read file, parse, validate; throws InvalidTenantsConfigError on failure
  • validateTenantsConfig(data) — validate an in-memory object

See also

  • Configuration — field reference for tenants.config.json
  • CLImultitenant check uses this validation path
  • @multitenant/corecreateTenantRegistry accepts parsed config

On this page