refactor: remove CI_MODE check from icon page generateStaticParams

- Remove local development optimization that limited icons to 5
- Now generates all icons statically regardless of environment
- Simplifies the code and ensures consistent behavior across environments
This commit is contained in:
Thomas Camlong
2025-11-07 08:35:42 +01:00
parent 74d2a81cd3
commit f79ff32efa

View File

@@ -11,14 +11,6 @@ export const dynamic = "force-static"
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,
}))