Skip to content

VexClientConfig

Defined in: packages/core/src/config/types.ts:518

Resolved client-side Vex CMS configuration after defineConfig() applies defaults. Structurally contained by VexConfig — every field here is also readable on a full VexConfig, so server code written against the old monolithic shape continues to compile.

optional access?: VexAccessConfig<Record<string, SubjectEntry>, readonly AccessResource[], string, string | undefined, Partial<Record<string, CustomActionsInput>>>

Defined in: packages/core/src/config/types.ts:521


admin: AdminConfig

Defined in: packages/core/src/config/types.ts:520

Resolved admin panel configuration — always fully populated after defaults are applied.


authCollections: AuthCollectionConfig[]

Defined in: packages/core/src/config/types.ts:547

Auth collections built by the project’s auth package’s client-safe builder (e.g. betterAuthCollections() from @vexcms/better-auth/client), before merging into collections. Always present; defaults to [] for a project with no auth.

AuthCollectionConfig for the shape


basePath: string

Defined in: packages/core/src/config/types.ts:549

URL prefix for all admin panel routes — always set after defaults are applied.


collections: CollectionConfig<{ }, { }, string, Record<string, AdminField>, ComponentHKT, boolean, boolean, string>[]

Defined in: packages/core/src/config/types.ts:529

All registered content collections — user-defined collections merged with authCollections and internal collections, in that order. Always an array after defaults are applied.

mergeAuthCollections for the merge order and precedence rules


optional editor?: VexEditorAdapter<ComponentHKT>

Defined in: packages/core/src/config/types.ts:576

Resolved root editor adapter — present only when the project configured one. undefined when the project has no rich-text fields.

VexEditorAdapter for the adapter shape


fields: VexFieldsConfig

Defined in: packages/core/src/config/types.ts:578

Resolved project-wide field behavior defaults — always fully populated.


globals: GlobalConfig<{ }, { }, string, Record<string, AdminField<{ }>>, ComponentHKT, boolean>[]

Defined in: packages/core/src/config/types.ts:531

Resolved global configs. Always present; defaults to [].


mediaCollections: MediaCollectionConfig[]

Defined in: packages/core/src/config/types.ts:538

Media collections declared on the client config, validated against upload() field references. Always present; defaults to [].

MediaCollectionConfig for the resolved shape


optional routes?: VexRoutesConfig

Defined in: packages/core/src/config/types.ts:554

Resolved route map. undefined when the project never configured routes — it is opt-in.


schema: SchemaConfig

Defined in: packages/core/src/config/types.ts:567

Resolved schema generation configuration — always fully populated after defaults are applied. Consumed by the CLI only; present on the client config because it is inert settings data, not a bundle hazard.


storage: object

Defined in: packages/core/src/config/types.ts:561

Client-side upload functions, keyed by storage adapter slug. Always present; defaults to {}.

clientUploads: ClientUploadMap

ClientUploadMap for the value shape


types: TypesConfig

Defined in: packages/core/src/config/types.ts:569

Resolved type generation configuration — always fully populated after defaults are applied.