Internal Service β This is not an HTTP endpoint. Itβs called directly by the
generate-all orchestrator.Purpose
Downloads the favicon from a website, converts it to PNG format, and uploads it to Supabase Storage. Returns a public URL for the favicon. Runs in GROUP 1d (parallel with scrape, fire-and-forget). Doesnβt need scraped pages.Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
url | str | The website URL |
org_slug | str | The Clerk organization slug |
Returns
Favicon Discovery Order
The service tries these locations in order:/favicon.ico- Standard location/apple-touch-icon.png- iOS icon (usually higher quality)/apple-touch-icon-precomposed.png- Alternative iOS icon- HTML
<link rel="icon">tag - HTML
<link rel="shortcut icon">tag - Fallback: Googleβs favicon service (
https://www.google.com/s2/favicons?domain=...)