Skip to content
mercury framework
GitHub

DirectoryPlugin

DirectoryPlugin = object

Defined in: types/channel-types/index.ts:276

A user directory, declared as directory in mercury.config.ts: the source of truth about who people are and their roles. build reads its own config from env and throws when it’s missing, so a misconfigured directory leaves the instance closed to everyone but the terminal, never open. name prefixes the people’s keys, so it can’t be a principal provider’s.

apiVersion: number

Defined in: types/channel-types/index.ts:277


build: (ctx) => Directory

Defined in: types/channel-types/index.ts:279

Record<string, string | undefined>

(msg) => void

Directory


name: string

Defined in: types/channel-types/index.ts:278