@codefast/image-loader
Version:
Simple, functional image loader for Next.js supporting multiple CDN providers
13 lines (12 loc) • 323 B
TypeScript
import type { ImageLoaderProps } from "next/image";
/**
* Sirv URL transformation
* Handles Sirv CDN
*
* @example
* ```text
* https://example.com/image.jpg
* → https://example.com/image.jpg?format=optimal&w=800&q=85
* ```
*/
export declare function sirvLoader({ quality, src, width }: ImageLoaderProps): string;