mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-10 13:38:58 +01:00
feat: add workmark icons
This commit is contained in:
@@ -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,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user