You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: single-source the multi-org (OS_MULTI_ORG_ENABLED) flag (#2350)
"Is this deployment multi-org?" was resolved in 10 sites across 8 packages
with 3 subtly different inline expressions — including a bare process.env
read in the SQL driver that skipped the OS_MULTI_TENANT deprecation warning
every other site emits, so the driver could resolve the mode independently
of the auth/security layer.
Add resolveMultiOrgEnabled() to @objectstack/types (beside
readEnvWithDeprecation) as the single source of truth and route all 10
sites through it:
- driver-sql isMultiTenantMode() (+ new @objectstack/types dep)
- plugin-auth /auth/config features + beforeCreateOrganization guard
- objectql registry, runtime app-plugin, plugin-dev
- cli serve (x2) + verify, cloud-connection
Behaviour unchanged except the SQL driver now also emits the one-shot
OS_MULTI_TENANT deprecation warning. Mirrors the resolveAuthzContext
single-source pattern in @objectstack/core.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments