From 7425a484c2ad97980663efa142ec8661abf3ab73 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sat, 5 Sep 2026 22:47:24 +0200 Subject: [PATCH] Bundle simple-icons and lucide locally to avoid API timeouts --- nuxt.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 2674dd5..3f6e06d 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -60,6 +60,15 @@ export default defineNuxtConfig({ dir: resolve('./app/assets/brand-icons'), }, ], + // app.config.ts's codeIcon map resolves simple-icons/lucide names + // dynamically (not as a literal `i-xxx` string anywhere), so Nuxt + // Icon's static scanner can't pick them up for the local bundle. + // Without this, they fall back to a live api.iconify.design request + // at prerender time, which times out wherever outbound access is + // restricted. Bundling both collections in full avoids that fallback. + serverBundle: { + collections: ['simple-icons', 'lucide'], + }, }, content: { build: {