From 73b00ff7a4838e1b5f052dd137f851ac9a92cd55 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Wed, 30 Apr 2025 11:57:52 +0200 Subject: [PATCH] remove getstaticparams from app icons --- web/src/app/icons/[icon]/page.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/web/src/app/icons/[icon]/page.tsx b/web/src/app/icons/[icon]/page.tsx index bd0c064c..ac1ad016 100644 --- a/web/src/app/icons/[icon]/page.tsx +++ b/web/src/app/icons/[icon]/page.tsx @@ -1,22 +1,12 @@ import { IconDetails } from "@/components/icon-details" import { BASE_URL, WEB_URL } from "@/constants" import { getAllIcons, getAuthorData } from "@/lib/api" -import { formatIconName } from "@/lib/utils" import type { Metadata, ResolvingMetadata } from "next" -import { default as dynamicImport } from "next/dynamic" import { notFound } from "next/navigation" export const dynamicParams = false export async function generateStaticParams() { const iconsData = await getAllIcons() - if (process.env.CI_MODE === "false") { - // This is meant to speed up the build process in local development - return Object.keys(iconsData) - .slice(0, 5) - .map((icon) => ({ - icon, - })) - } return Object.keys(iconsData).map((icon) => ({ icon, }))