fixed revalidate path

This commit is contained in:
Umar Adilov 2025-05-10 18:25:58 +05:00
parent 537ed60fa8
commit 7272c30b2c

View File

@ -3,7 +3,8 @@ import { NextResponse } from 'next/server';
export async function GET() {
try {
revalidatePath('*'); // Drop all cache
revalidatePath('/', 'layout');
revalidatePath('/', 'page');
return NextResponse.json({ success: true });
} catch (err) {