Files
windwiderstand/src/lib/iconify-offline.ts
T
Peter Meier 2fef91a548
Deploy / verify (push) Failing after 32s
Deploy / deploy (push) Has been skipped
Initial SvelteKit frontend port of windwiderstand.de
Full parity with Astro site: content rows, post/tag routes, pagination,
event badges + OSM map, comments, Live-Search via /api/search-index,
CMS image proxy, RSS, sitemap.

Deploy: Dockerfile + docker-compose.prod.yml + Gitea Actions workflow
to build + push to git.pm86.de registry and ssh-deploy to Contabo.
2026-04-17 22:01:30 +02:00

13 lines
559 B
TypeScript

/**
* Iconify Offline: MDI-Collection für Server und Client registrieren.
* Muss an zwei Stellen importiert werden (Side-Effect-Import), damit
* <Icon icon="mdi:…" /> überall gleich rendert (kein Hydration-Mismatch):
* 1. Layout.astro (--- Block) → läuft beim SSR
* 2. Header.svelte (oder andere frühe client:load-Komponente) → läuft im Browser
* Danach können alle Svelte-Komponenten Icon ohne API nutzen.
*/
import { addCollection } from "@iconify/svelte";
import { icons as mdiIcons } from "@iconify-json/mdi";
addCollection(mdiIcons);