Skip to content

Commit

Permalink
fix: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nsdonato committed Jan 26, 2024
1 parent 425f85c commit bc3beca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/revalidate/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { revalidatePath } from "next/cache";

export async function GET() {
revalidatePath("/", "layout")
return Response.json({revalidated: true})
}

0 comments on commit bc3beca

Please sign in to comment.