From a2052b92bd80acabc97e5562fbae2aa529cce629 Mon Sep 17 00:00:00 2001 From: Arnav Date: Wed, 24 Apr 2024 18:53:15 +1200 Subject: [PATCH] AND AGAIN: don't static render news articles page because it attempts to fetch API during build (which will fail if API is running) --- frontend/app/(content)/news/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/app/(content)/news/page.tsx b/frontend/app/(content)/news/page.tsx index c192bb4a..17b529b4 100644 --- a/frontend/app/(content)/news/page.tsx +++ b/frontend/app/(content)/news/page.tsx @@ -6,6 +6,9 @@ import Link from "next/link"; import ButtonLink from "@/app/components/ButtonLink"; import { getMetadata } from "@/app/util"; +// 👇 so npm run build passes (don't attempt to static render this page) +export const dynamic = "force-dynamic"; + export const metadata = getMetadata("All News") export default async function AllNewsPage () {