From a4a373e890a84da131f51fb2ff8acaa3d9299ab5 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Tue, 5 Nov 2024 00:06:35 +0100 Subject: [PATCH] Set revalidate to 0 in categories route to ensure fresh data fetch on each build --- frontend/src/app/api/categories/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/api/categories/route.ts b/frontend/src/app/api/categories/route.ts index 6b6368fbf..3a2d407a0 100644 --- a/frontend/src/app/api/categories/route.ts +++ b/frontend/src/app/api/categories/route.ts @@ -3,6 +3,7 @@ import { Category } from "@/lib/types"; import { NextResponse } from "next/server"; export const dynamic = "force-static"; +export const revalidate = 0; // This will force a new fetch on each build export async function GET() { try {