Auto-detect content icon collections for the server bundle instead of hand-maintaining the list
Fixes noto, carbon, cbi, cib, fluent-color, logos, and solar icons silently falling back to a live api.iconify.design call blocked by the CSP, which only showed up after a hard refresh once the browser cached a partial response. nuxt.config.ts now scans content/*.md for every icon collection actually referenced and bundles it automatically, so a newly introduced collection only needs npm install, not a manual config edit.
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
"build": "NUXT_SITE_URL=https://docu.djeex.fr nuxt build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@iconify-json/carbon": "^1.2.26",
|
||||
"@iconify-json/cbi": "^1.2.59",
|
||||
"@iconify-json/cib": "^1.2.3",
|
||||
"@iconify-json/fluent-color": "^1.2.21",
|
||||
"@iconify-json/logos": "^1.2.14",
|
||||
"@iconify-json/noto": "^1.2.7",
|
||||
"@iconify-json/solar": "^1.2.10",
|
||||
"@nuxtjs/i18n": "^10.6.0",
|
||||
"better-sqlite3": "^12.11.1",
|
||||
"docus": "^5.13.0",
|
||||
|
||||
Reference in New Issue
Block a user