@codefast/image-loader
Version:
Simple, functional image loader for Next.js supporting multiple CDN providers
13 lines (12 loc) • 423 B
TypeScript
import type { ImageLoaderProps } from "next/image";
/**
* Supabase URL transformation
* Handles *.supabase.co domains
*
* @example
* ```text
* https://xyz.supabase.co/storage/v1/object/public/bucket/image.jpg
* → https://xyz.supabase.co/storage/v1/object/public/bucket/image.jpg?format=auto&quality=80&width=800
* ```
*/
export declare function supabaseLoader({ quality, src, width }: ImageLoaderProps): string;