UNPKG

@codefast/image-loader

Version:

Simple, functional image loader for Next.js supporting multiple CDN providers

13 lines (12 loc) 390 B
import type { ImageLoaderProps } from "next/image"; /** * Cloudflare URL transformation * Handles Cloudflare CDN with automatic optimization * * @example * ```text * https://example.com/image.jpg * → https://example.com/cdn-cgi/image/width=800,quality=80,format=auto/image.jpg * ``` */ export declare function cloudflareLoader({ quality, src, width }: ImageLoaderProps): string;