mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## 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.
15 lines
383 B
TypeScript
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`,
|
|
},
|
|
]
|