From 8de952d91b5aca6e658d68d277103404f7d0adb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Mon, 6 Apr 2026 01:15:53 +0100 Subject: [PATCH] fix(web): force-dynamic on payload pages (no DB at build time) Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/src/app/[locale]/(marketing)/blog/[slug]/page.tsx | 2 ++ apps/web/src/app/[locale]/(marketing)/blog/page.tsx | 2 ++ apps/web/src/app/[locale]/(marketing)/changelog/page.tsx | 2 ++ 3 files changed, 6 insertions(+) diff --git a/apps/web/src/app/[locale]/(marketing)/blog/[slug]/page.tsx b/apps/web/src/app/[locale]/(marketing)/blog/[slug]/page.tsx index 24de9d2..629b8b8 100644 --- a/apps/web/src/app/[locale]/(marketing)/blog/[slug]/page.tsx +++ b/apps/web/src/app/[locale]/(marketing)/blog/[slug]/page.tsx @@ -3,6 +3,8 @@ import { getPayload } from "payload"; import config from "@payload-config"; import { RichText } from "@payloadcms/richtext-lexical/react"; +export const dynamic = "force-dynamic"; + type Props = { params: Promise<{ slug: string }> }; export async function generateMetadata({ params }: Props) { diff --git a/apps/web/src/app/[locale]/(marketing)/blog/page.tsx b/apps/web/src/app/[locale]/(marketing)/blog/page.tsx index cc5bafc..0f26fdc 100644 --- a/apps/web/src/app/[locale]/(marketing)/blog/page.tsx +++ b/apps/web/src/app/[locale]/(marketing)/blog/page.tsx @@ -2,6 +2,8 @@ import Link from "next/link"; import { getPayload } from "payload"; import config from "@payload-config"; +export const dynamic = "force-dynamic"; + export const metadata = { title: "Blog — claudemesh", description: "Engineering notes on peer messaging, protocol design, and multi-agent security.", diff --git a/apps/web/src/app/[locale]/(marketing)/changelog/page.tsx b/apps/web/src/app/[locale]/(marketing)/changelog/page.tsx index 727b71f..c4869eb 100644 --- a/apps/web/src/app/[locale]/(marketing)/changelog/page.tsx +++ b/apps/web/src/app/[locale]/(marketing)/changelog/page.tsx @@ -1,6 +1,8 @@ import { getPayload } from "payload"; import config from "@payload-config"; +export const dynamic = "force-dynamic"; + export const metadata = { title: "Changelog — claudemesh", description: "Release history for claudemesh-cli.",