From 9e328f859db3c220a007dc1b85ac3343fe95615e Mon Sep 17 00:00:00 2001 From: Djeex Date: Mon, 30 Nov 2026 13:29:26 +0000 Subject: [PATCH] Bundle vscode-icons file-type icons and map bashrc and credentials --- app/app.config.ts | 6 ++++++ nuxt.config.ts | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/app/app.config.ts b/app/app.config.ts index 5e02f1a..22367a7 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -65,6 +65,12 @@ export default defineAppConfig({ 'ini': 'i-lucide-settings', 'conf': 'i-lucide-settings', 'service': 'i-lucide-settings', + // vscode-icons has no bashrc/credentials file-type icon, so the + // default lookup failed at build time. + 'bashrc': 'i-vscode-icons-file-type-shell', + '.bashrc': 'i-vscode-icons-file-type-shell', + 'credentials': 'i-lucide-settings', + '.credentials': 'i-lucide-settings', // Used as ::code-group tab labels when a command differs per OS. 'macos': 'i-simple-icons-apple', 'linux': 'i-simple-icons-linux', diff --git a/nuxt.config.ts b/nuxt.config.ts index 3c46a95..7220fc5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -251,6 +251,16 @@ export default defineNuxtConfig({ 'simple-icons:apple', 'simple-icons:linux', 'simple-icons:windows', + // vscode-icons file-type icons Docus resolves from code block + // filenames (e.g. ```yaml [compose.yaml]). Resolved dynamically, so + // the scanners can't see them, and the prerender-time lookup timed + // out under load (1500ms) for every one of them. + 'vscode-icons:file-type-yaml', + 'vscode-icons:file-type-dotenv', + 'vscode-icons:file-type-php', + 'vscode-icons:file-type-toml', + 'vscode-icons:file-type-sqlite', + 'vscode-icons:file-type-shell', ...contentIcons.icons, ])], },