Merge branch 'main' of https://github.com/lucide-icons/lucide into vitepress-nitro-plugin

This commit is contained in:
Eric Fennis
2026-03-05 18:45:17 +01:00
8 changed files with 25 additions and 17 deletions
-3
View File
@@ -20,9 +20,6 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Outline svg Icons
run: pnpm build:outline-icons
- name: Create font in ./lucide-font
run: pnpm build:font
+1 -1
View File
@@ -1,5 +1,5 @@
import iconMetaData from '~/.vitepress/data/iconMetaData';
import { eventHandler, setResponseHeader } from 'h3';
import iconMetaData from '~/.vitepress/data/iconMetaData';
export default eventHandler((event) => {
setResponseHeader(event, 'Cache-Control', 'public, max-age=86400');
+1 -1
View File
@@ -64,4 +64,4 @@
"svgson": "^5.3.1",
"vue": "^3.5.24"
}
}
}
+6
View File
@@ -34,6 +34,12 @@ vercelRouteConfig.routes = [...iconAliasesRedirectRoutes, ...vercelRouteConfig.r
const allCatchRoute = '/(.*)';
const fallBackIndex = vercelRouteConfig.routes.findIndex((route) => route.src === allCatchRoute);
if (fallBackIndex === -1) {
throw new Error(
`Could not find the expected catch-all route with src "${allCatchRoute}" in the existing Vercel config. Please make sure that the existing config has a catch-all route and that its src is "${allCatchRoute}".`,
);
}
vercelRouteConfig.routes[fallBackIndex].src = '/api/(.*)';
vercelRouteConfig.routes.push({
src: allCatchRoute,
+9
View File
@@ -5,6 +5,15 @@
"mittalyashu"
],
"tags": [
"cryptocurrency",
"digital",
"blockchain",
"finance",
"coin",
"market",
"decentralized",
"investment",
"crypto",
"currency",
"money",
"payment"
+5 -5
View File
@@ -8507,11 +8507,11 @@ packages:
glob@7.2.0:
resolution: {integrity: sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
deprecated: Glob versions prior to v9 are no longer supported
glob@7.2.3:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
deprecated: Glob versions prior to v9 are no longer supported
glob@8.1.0:
resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}
@@ -14707,14 +14707,14 @@ snapshots:
'@babel/helper-simple-access@7.24.7':
dependencies:
'@babel/traverse': 7.28.5
'@babel/types': 7.28.6
'@babel/types': 7.29.0
transitivePeerDependencies:
- supports-color
'@babel/helper-skip-transparent-expression-wrappers@7.24.7':
dependencies:
'@babel/traverse': 7.28.5
'@babel/types': 7.28.6
'@babel/types': 7.29.0
transitivePeerDependencies:
- supports-color
@@ -14739,7 +14739,7 @@ snapshots:
dependencies:
'@babel/template': 7.28.6
'@babel/traverse': 7.28.5
'@babel/types': 7.28.6
'@babel/types': 7.29.0
transitivePeerDependencies:
- supports-color
+1 -3
View File
@@ -1,5 +1,4 @@
import { type IconAliases } from '@lucide/helpers';
import path from 'path';
import { promises as fs } from 'fs';
import { cwd } from 'process';
import { put } from '@vercel/blob';
@@ -50,11 +49,10 @@ export async function allocateCodePoints({
if (saveCodePoints) {
const content = JSON.stringify(baseCodePoints, null, 2);
await fs.writeFile(path.join(cwd(), 'codepoints.json'), content, 'utf-8');
await put(VERCEL_BLOB_CODEPOINTS_PATH, content, { access: 'public', allowOverwrite: true });
console.log('Code points saved to codepoints.json and uploaded to Vercel Blob Storage.');
console.log('Code points uploaded to Vercel Blob Storage.');
}
return baseCodePoints;
+2 -4
View File
@@ -52,7 +52,5 @@ await buildFont({
startUnicode,
});
await fs.copyFile(
path.join(process.cwd(), 'codepoints.json'),
path.join(targetDir, 'codepoints.json'),
);
const codepointsContent = JSON.stringify(codePoints, null, 2);
await fs.writeFile(path.join(targetDir, 'codepoints.json'), codepointsContent, 'utf-8');