Install @iconify-json/lucide and @iconify-json/simple-icons as server-only dependencies. Rewrite /api/ai/icon to read from local bundled JSON instead of fetching from api.iconify.design, eliminating the external network dependency that caused brand icons to silently fail. Search order: simple-icons first (brand logos only — no UI name collisions), then lucide (UI icons). Covers 3670 brand icons and 1729 Lucide icons with sub-millisecond lookup. No impact on client bundle size. |
||
|---|---|---|
| .. | ||
| api/ai | ||
| utils | ||