Skip to content
API/DRIVERS

DRIVERS

src/drivers/driver-registry.tsconst

Every supported driver, keyed by its DriverEnum member

Record<DriverEnum, DriverDefinition> gives compile-time exhaustiveness: adding a value to DriverEnum fails to compile until its definition is registered here.

Reading this map reaches every driver, so a consumer that knows its backend at build time should import the driver constant directly (import { STRAPI_DRIVER } from '@qubeejs/core') and let the rest tree-shake.