mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-11-19 01:57:29 +01:00
chore: fix compilation
This commit is contained in:
@@ -3,6 +3,7 @@ import { ImageResponse } from "next/og"
|
||||
import { getCommunityGalleryRecord, getCommunitySubmissionByName, getCommunitySubmissions } from "@/lib/community"
|
||||
|
||||
export const revalidate = 21600 // 6 hours
|
||||
export const runtime = 'edge';
|
||||
|
||||
export async function generateStaticParams() {
|
||||
const icons = await getCommunitySubmissions()
|
||||
|
||||
@@ -3,7 +3,7 @@ import { join } from "node:path"
|
||||
import { ImageResponse } from "next/og"
|
||||
import { getAllIcons } from "@/lib/api"
|
||||
|
||||
export const dynamic = "force-static"
|
||||
export const runtime = 'edge';
|
||||
export const revalidate = false
|
||||
|
||||
export async function generateStaticParams() {
|
||||
|
||||
@@ -60,12 +60,9 @@ function Calendar({
|
||||
...classNames,
|
||||
}}
|
||||
components={{
|
||||
IconLeft: ({ className, ...props }) => (
|
||||
Chevron: ({ className, ...props }) => (
|
||||
<ChevronLeft className={cn("size-4", className)} {...props} />
|
||||
),
|
||||
IconRight: ({ className, ...props }) => (
|
||||
<ChevronRight className={cn("size-4", className)} {...props} />
|
||||
),
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
|
||||
@@ -10,3 +10,4 @@ export class ApiError extends Error {
|
||||
this.status = status
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user