Set revalidate to 0 in categories route to ensure fresh data fetch on each build

This commit is contained in:
Bram Suurd 2024-11-05 00:06:35 +01:00
parent 84675838de
commit a4a373e890

View File

@ -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 {