mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-19 10:07:29 +01:00
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:
@@ -11,14 +11,6 @@ export const dynamic = "force-static"
|
|||||||
|
|
||||||
export async function generateStaticParams() {
|
export async function generateStaticParams() {
|
||||||
const iconsData = await getAllIcons()
|
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) => ({
|
return Object.keys(iconsData).map((icon) => ({
|
||||||
icon,
|
icon,
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user