feat(ssg): add ISR (revalidate=60) for dynamic database pages to keep data fresh

This commit is contained in:
mstfyldz
2026-05-30 23:25:14 +03:00
parent 2c24229caa
commit f777e1f104
6 changed files with 16 additions and 6 deletions
+2
View File
@@ -5,6 +5,8 @@ import { getProjects } from "@/app/actions";
import { slugify } from "@/lib/utils";
import { notFound } from "next/navigation";
export const revalidate = 60;
export async function generateMetadata({ params }: { params: Promise<{ lang: Locale, slug: string }> }) {
const { lang, slug } = await params;
const dict = await getDictionary(lang);