UNPKG

@lucidcms/cloudflare-adapter

Version:

The official Cloudflare Worker adapter for Lucid CMS

20 lines (19 loc) 697 B
import { GetPlatformProxyOptions } from "wrangler"; import { LucidAdapter, LucidExtendAdapterDefineConfig, RenderedTemplates } from "@lucidcms/core/types"; //#region src/adapter.d.ts declare const cloudflareAdapter: (options?: { platformProxy?: GetPlatformProxyOptions; server?: { port?: number; hostname?: string; }; }) => LucidAdapter; //#endregion //#region src/define-config.d.ts type CloudfalreConfigFactory = LucidExtendAdapterDefineConfig<[meta?: { emailTemplates?: RenderedTemplates; }]>; declare const defineConfig: (factory: CloudfalreConfigFactory) => CloudfalreConfigFactory; //#endregion export { cloudflareAdapter, defineConfig }; //# sourceMappingURL=index.d.ts.map