mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-03-21 17:54:09 -05:00
Update refresh util to redirect
This commit is contained in:
parent
e3561eb6da
commit
9586fe2af7
|
|
@ -17,5 +17,5 @@ export async function GET(req: NextRequest, { params }: { params: Promise<{ slug
|
|||
|
||||
revalidateTag(`hack:${slug}:metadata`);
|
||||
revalidateTag(`hack:${slug}:downloads`);
|
||||
return NextResponse.json({ message: "Cache refreshed" });
|
||||
return NextResponse.redirect(new URL(`/hack/${slug}`, req.url));
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user