Use backend branding assets for logo and favicon

This commit is contained in:
2026-01-23 20:27:12 +13:00
parent 00bccfa8b6
commit 52e3d680f7
2 changed files with 2 additions and 3 deletions

View File

@@ -4,12 +4,11 @@ import { useEffect } from 'react'
export default function BrandingFavicon() { export default function BrandingFavicon() {
useEffect(() => { useEffect(() => {
const href = '/branding-icon.svg' const href = '/api/branding/favicon.ico'
let link = document.querySelector("link[rel='icon']") as HTMLLinkElement | null let link = document.querySelector("link[rel='icon']") as HTMLLinkElement | null
if (!link) { if (!link) {
link = document.createElement('link') link = document.createElement('link')
link.rel = 'icon' link.rel = 'icon'
link.type = 'image/svg+xml'
document.head.appendChild(link) document.head.appendChild(link)
} }
link.href = href link.href = href

View File

@@ -7,7 +7,7 @@ export default function BrandingLogo({ className, alt = 'Magent logo' }: Brandin
return ( return (
<img <img
className={className} className={className}
src="/branding-logo.svg" src="/api/branding/logo.png"
alt={alt} alt={alt}
/> />
) )