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
@@ -4,6 +4,8 @@ import WorkDetailClient from "@/components/WorkDetailClient";
import { notFound } from "next/navigation";
import { getProjects } from "@/app/actions";
export const revalidate = 60;
// ── Static params for all slug × lang combinations ──
export async function generateStaticParams() {
const langs: Locale[] = ["en", "tr"];