perf(site): inline small classic icons and favicon as base64
CI / check (push) Successful in 2m27s
CI / deploy (push) Successful in 1m34s
CI / publish-container (push) Successful in 50s

- New src/lib/site-icons.ts: base64 data URIs for the 13 tiny classic
  icons actually referenced in markup (100–2000 bytes), replacing extra
  requests with inline payloads. home.png, dynamic flags and currency
  sets stay on the filesystem.
- Default favicon is now served server-side as a base64 SVG data URI
  (memoized), while a DB-configured custom favicon still takes priority.
- Icons render through <Image unoptimized>, so data URIs pass through
  untouched on all affected pages (home, login, register, settings,
  navigation, auth top bar, client loading).
This commit is contained in:
openhands committed 2026-09-12 17:28:01 +02:00
1 parent 97012a78f6
commit e5e17d75ae
10 files changed
+128 -64

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import Image from "next/image";
import { ICON_LIGHTHOUSE } from "@/lib/site-icons";
export default function ClientLoading() {
return (
@@ -27,7 +28,7 @@ export default function ClientLoading() {
}}
>
<Image
src="/assets/images/icons/lighthouse.png"
src={ICON_LIGHTHOUSE}
alt=""
width={44}
height={44}