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() {
|
export async function GET() {
|
||||||
try {
|
try {
|
||||||
revalidatePath('*'); // Drop all cache
|
revalidatePath('/', 'layout');
|
||||||
|
revalidatePath('/', 'page');
|
||||||
|
|
||||||
return NextResponse.json({ success: true });
|
return NextResponse.json({ success: true });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user