function canProxyImage
canProxyImage(url: string): boolean

Checks whether url points at another site, where proxying it could help. Thumbnail retries through the proxy only then, since the site's own files and thumbnails would fail the same way again.

Parameters

url: string

Return Type

boolean

Usage

import { canProxyImage } from "src/utils/shared/proxyImage.ts";