UNPKG

@codefast/image-loader

Version:

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

13 lines (12 loc) 334 B
import type { ImageLoaderProps } from "next/image"; /** * Fastly URL transformation * Handles Fastly CDN * * @example * ```text * https://example.com/image.jpg * → https://example.com/image.jpg?auto=webp&width=800&quality=80 * ``` */ export declare function fastlyLoader({ quality, src, width }: ImageLoaderProps): string;