@botonic/plugin-contentful
Version:
## What Does This Plugin Do?
26 lines (21 loc) • 721 B
text/typescript
import { Locale } from '../nlp'
/**
* Default values when the context argument {@link Context} is not specified in a {@link CMS} call.
*/
export const DEFAULT_CONTEXT: Context = {}
export interface Context {
locale?: Locale
/**
* When set, empty fields will be blank even if they have a value for the fallback locale
* NOT applying it so far for assets because cms.Asset does not support blank assets
*/
ignoreFallbackLocale?: boolean
/**
* Useful for debugging. Limit how many contents are requested in parallel.
* If not specified, the contents will use as much parallelism as possible.
*/
concurrency?: number
}
export interface ContextWithLocale extends Context {
locale: Locale
}