diff --git a/app/[lang]/blog/[slug]/page.tsx b/app/[lang]/blog/[slug]/page.tsx index 6fedb82..027a486 100644 --- a/app/[lang]/blog/[slug]/page.tsx +++ b/app/[lang]/blog/[slug]/page.tsx @@ -4,6 +4,8 @@ import { getBlogPosts } from "@/app/actions"; import BlogDetailClient from "@/components/BlogDetailClient"; import { notFound } from "next/navigation"; +export const revalidate = 60; + // Convert DB format to expected BlogPost format function mapBlogPost(dbPost: any) { return { diff --git a/app/[lang]/blog/page.tsx b/app/[lang]/blog/page.tsx index 144552f..049622e 100644 --- a/app/[lang]/blog/page.tsx +++ b/app/[lang]/blog/page.tsx @@ -3,6 +3,8 @@ import type { Locale } from "@/i18n-config"; import BlogClient from "@/components/BlogClient"; import { getBlogPosts } from "@/app/actions"; +export const revalidate = 60; + export async function generateMetadata({ params }: { params: Promise<{ lang: Locale }> }) { const { lang } = await params; const dict = await getDictionary(lang); diff --git a/app/[lang]/expertise/[slug]/page.tsx b/app/[lang]/expertise/[slug]/page.tsx index a75d0db..795ac5a 100644 --- a/app/[lang]/expertise/[slug]/page.tsx +++ b/app/[lang]/expertise/[slug]/page.tsx @@ -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); diff --git a/app/[lang]/work/[slug]/page.tsx b/app/[lang]/work/[slug]/page.tsx index 2dc02a0..aa4c222 100644 --- a/app/[lang]/work/[slug]/page.tsx +++ b/app/[lang]/work/[slug]/page.tsx @@ -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"]; diff --git a/app/[lang]/work/page.tsx b/app/[lang]/work/page.tsx index 6491094..3d67a27 100644 --- a/app/[lang]/work/page.tsx +++ b/app/[lang]/work/page.tsx @@ -3,6 +3,8 @@ import type { Locale } from "@/i18n-config"; import WorkClient from "@/components/WorkClient"; import { getProjects } from "@/app/actions"; +export const revalidate = 60; + export async function generateMetadata({ params }: { params: Promise<{ lang: Locale }> }) { const { lang } = await params; const dict = await getDictionary(lang); diff --git a/components/Footer.tsx b/components/Footer.tsx index 31e6111..a2a1fdc 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -13,11 +13,11 @@ export default function Footer({ lang, dict }: { lang: Locale; dict: any }) { const registry = [ { name: dict.nav.services, href: `/${lang}/services` }, - { name: dict.nav.work, href: `/${lang}/work` }, - { name: dict.nav.process, href: `/${lang}/process` }, - { name: dict.nav.blog, href: `/${lang}/blog` }, + { name: dict.nav.work, href: `/${lang}/work` }, + { name: dict.nav.process, href: `/${lang}/process` }, + { name: dict.nav.blog, href: `/${lang}/blog` }, { name: dict.nav.partners, href: `/${lang}/partners` }, - { name: dict.nav.faq, href: `/${lang}/faq` }, + { name: dict.nav.faq, href: `/${lang}/faq` }, ]; return ( @@ -26,8 +26,8 @@ export default function Footer({ lang, dict }: { lang: Locale; dict: any }) { {/* Big CTA */}