@owlmeans/server-wl
v0.1.7
Published
Server-side whitelabeling — provides entity-specific branding and configuration via backend modules.
Downloads
28
Readme
@owlmeans/server-wl
Server-side whitelabeling — provides entity-specific branding and configuration via backend modules.
Overview
- Exports
modulesarray: pre-built server modules that serve WL (whitelabel) configuration to clients - Provides
provideaction — the handler for the WL configuration endpoint - Integrates with
@owlmeans/wledfor whitelabel data definitions - Apps add WL DNS service from
@owlmeans/server-wl-dnsfor domain-based entity resolution
Installation
bun add @owlmeans/server-wlUsage
Register WL modules in a backend service:
import { modules as wlModules } from '@owlmeans/server-wl'
import { main, modules } from '@owlmeans/server-app'
await main(context, [...modules, ...wlModules, ...appModules])With DNS-based entity resolution (from viable):
import { appendWlDnsService } from '@owlmeans/server-wl-dns'
import { wlDnsModules } from '@owlmeans/server-wl-dns'
appendWlDnsService(context)
await main(context, [...modules, ...wlDnsModules, ...appModules])API
modules
Array of ServerModule instances providing the WL configuration API endpoint.
WlConfig / WlRecord (types)
Whitelabel configuration types defining branding, theme, and entity-specific settings.
Related Packages
@owlmeans/client-wl— client-side WL service that fetches from this server@owlmeans/server-app— server bootstrap that includes these modules
