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
+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,