Skip to content
Snippets Groups Projects
media-proxy.ts 456 B
Newer Older
export function getProxiedImageUrl(imageUrl: string, type?: 'preview'): string {
		...(type ? { [type]: "1" } : {}),
export function getProxiedImageUrlNullable(imageUrl: string | null | undefined, type?: 'preview'): string | null {
	return getProxiedImageUrl(imageUrl, type);