Files
supabase/packages/common/MetaFavicons/icons.ts
Danny White 255a80e219 refactor(apps): standardise existing favicon assets and declarations (#51419)
## Problem

- Favicon files and markup are duplicated across apps.

## Solution

- Replace old files with one ICO, one Apple icon and two manifest icons
per set.
- Share icon markup and add generation notes and scripts.
- Keep existing branding, including Learn's black and white icon.
- Make the border radius match across all apps’ favicons.

## Review instructions

- Check normal app icons and Studio staging in browser tabs.
- Check icons load under `/docs` and `/kb`.
- Run `node scripts/validate-favicons.mjs`. All 8 sets should pass.
2026-10-12 10:18:18 +11:00

15 lines
383 B
TypeScript

export const genFaviconLinks = (basePath: string, route = '/favicon') => [
{
rel: 'icon',
type: 'image/x-icon',
sizes: '16x16 32x32 48x48',
href: `${basePath.replace(/\/$/, '')}${route}/favicon.ico`,
},
{
rel: 'apple-touch-icon',
type: 'image/png',
sizes: '180x180',
href: `${basePath.replace(/\/$/, '')}${route}/apple-icon-180x180.png`,
},
]