Remove revalidate from categories route to maintain static fetching behavior without forced updates on each build

This commit is contained in:
Bram Suurd 2024-11-05 00:15:19 +01:00
parent 63aa8e2aa8
commit 1795dd1a80

View File

@ -3,7 +3,6 @@ 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 {