From 77f72ec8afceb1245eaf4a75ed0cb0020890b95a Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 6 Sep 2026 13:43:40 +0200 Subject: [PATCH] Bundle vscode-icons locally so file-tree icons stop hitting the API --- nuxt.config.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 064d6e5..b5ecc3a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -78,13 +78,14 @@ export default defineNuxtConfig({ }, ], // 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. + // dynamically (not as a literal `i-xxx` string anywhere), and + // FileTreeNode.vue resolves vscode-icons file-type icons the same way, + // so Nuxt Icon's static scanner can't pick any of 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 all three collections in full avoids that. serverBundle: { - collections: ['simple-icons', 'lucide'], + collections: ['simple-icons', 'lucide', 'vscode-icons'], }, }, content: {