astro-decap-cms
Version:
Add Decap CMS's admin dashboard to your Astro project
22 lines (21 loc) • 763 B
TypeScript
import type { AstroIntegration } from 'astro';
import type { CmsConfig } from 'decap-cms-core';
import type { PreviewStyle } from './types.js';
interface DecapCMSOptions {
/**
* Path at which the Netlify CMS admin dashboard should be served.
* @default '/admin'
*/
adminPath?: string;
config: Omit<CmsConfig, 'load_config_file' | 'local_backend'>;
disableIdentityWidgetInjection?: boolean;
previewStyles?: PreviewStyle[];
}
/**
* Creates a DecapCMS integration with the given options.
*
* @param {DecapCMSOptions} options - the options for configuring the DecapCMS integration
* @return {AstroIntegration} the DecapCMS integration
*/
export default function DecapCMS(options: DecapCMSOptions): AstroIntegration;
export {};