Skip to content

Commit 5dffd84

Browse files
committed
remove debugging
1 parent eb9849a commit 5dffd84

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/app/api/revalidate/route.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export async function POST(req: NextRequest): Promise<NextResponse> {
4242
let payload: RevalidateBody = { ...defaultRevalidateOptions }; // default to full revalidation if body is missing/invalid
4343
try {
4444
const body = (await req.json()) as RevalidateBody;
45-
console.log('Parsed request body:', JSON.stringify(body));
4645
payload = {
4746
...defaultRevalidateOptions,
4847
...body,
@@ -55,11 +54,6 @@ export async function POST(req: NextRequest): Promise<NextResponse> {
5554
payload = { ...defaultRevalidateOptions };
5655
}
5756

58-
console.log('Resolved payload:', JSON.stringify(payload));
59-
60-
// For debugging: log the type of revalidation being performed
61-
console.log(`Performing revalidation of type: ${payload.type}`);
62-
6357
// NOTE
6458
// revalidatePath = triggers revalidation for entire page cache
6559
// revalidateTag = triggers revalidation for API calls using `unstable_cache` with matching tags (e.g., feed-123, guest-feeds)

0 commit comments

Comments
 (0)