Skip to content

TypeScript API / @laikacms/astro / LaikaRepositoryOptions

Interface: LaikaRepositoryOptions ​

Extended by ​

Properties ​

catalog? ​

ts
optional catalog?: CatalogChoice;

Which catalog maps a collection to a directory. Defaults to 'convention'. Ignored when repositories is given.


configKey? ​

ts
optional configKey?: string;

Where the Decap config lives, for catalog: 'decap'. Defaults to 'config'.


defaultExtension? ​

ts
optional defaultExtension?: string;

File extension applied to keys without one. Defaults to 'json'.


dir? ​

ts
optional dir?: string;

Directory the default filesystem repository reads, resolved relative to the Astro project root. Ignored when storage or repositories is given. Defaults to 'content'.


repositories? ​

ts
optional repositories?: any;

Bring your own repositories. Highest precedence — nothing else in this struct is read when it is set.


serializers? ​

ts
optional serializers?: StorageSerializerRegistry;

Serializer registry for the default filesystem repository.


storage? ​

ts
optional storage?: StorageRepository;

Provide only the storage repository; the documents and assets repositories are derived from it via Catalog. Ignored when repositories is given.

Released under the MIT License.