<!-- source-hash: f63313ca4eeaf448cdcba009b26703d3 -->
A utility module that provides functions for managing image proxy URLs to handle external images through a local API proxy while bypassing internal domain images.

## Key Components

- **`getProxiedImageUrl(imageUrl)`** - Main function that converts external image URLs to proxied versions while preserving local and internal domain URLs
- **`shouldProxyImage(imageUrl)`** - Helper function that determines whether a given image URL requires proxying

## Usage Example

```typescript
import { getProxiedImageUrl, shouldProxyImage } from './image-proxy-stub';

// External image gets proxied
const externalUrl = 'https://example.com/image.jpg';
const proxiedUrl = getProxiedImageUrl(externalUrl);
// Returns: "/api/image-proxy?url=https%3A//example.com/image.jpg"

// Internal OpenMSP domain bypasses proxy
const internalUrl = 'https://cdn.openmsp.ai/logo.png';
const directUrl = getProxiedImageUrl(internalUrl);
// Returns: "https://cdn.openmsp.ai/logo.png"

// Check if image needs proxying
if (shouldProxyImage(imageUrl)) {
  console.log('Image will be proxied through API');
}

// Local/relative images remain unchanged
const localUrl = '/assets/image.png';
const unchangedUrl = getProxiedImageUrl(localUrl);
// Returns: "/assets/image.png"
```

The proxy system helps avoid CORS issues and provides consistent image delivery while optimizing performance for internal resources by skipping unnecessary proxy requests for OpenMSP-owned domains.