Skip to content

Commit

Permalink
AND AGAIN: don't static render news articles page because it attempts…
Browse files Browse the repository at this point in the history
… to fetch API during build (which will fail if API is running)
  • Loading branch information
arnard76 committed Apr 24, 2024
1 parent 7d57842 commit a2052b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/app/(content)/news/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit a2052b9

Please sign in to comment.