Skip to content

Commit

Permalink
Testing revalidatePath fix for year pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyleelarson committed Aug 22, 2023
1 parent 77a9b3c commit 9c1f532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/revalidate/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NextRequest, NextResponse } from "next/server";

export async function POST(request: NextRequest) {
revalidatePath("/");
revalidatePath("/[year]");
revalidatePath("[year]");
return new NextResponse(
JSON.stringify({ revalidated: true, now: Date.now(), from: "app" })
);
Expand Down

0 comments on commit 9c1f532

Please sign in to comment.