fixed revalidate path
This commit is contained in:
parent
537ed60fa8
commit
7272c30b2c
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user