Skip to content

Commit 6995a67

Browse files
committed
route type
1 parent 5dffd84 commit 6995a67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/api/revalidate/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NextResponse, type NextRequest } from 'next/server';
1+
import { NextResponse } from 'next/server';
22
import { revalidatePath, revalidateTag } from 'next/cache';
33
import { AVAILABLE_LOCALES } from '../../../i18n/routing';
44
import { nonEmpty } from '../../utils/config';
@@ -22,7 +22,7 @@ const defaultRevalidateOptions: RevalidateBody = {
2222
feedIds: [],
2323
};
2424

25-
export async function POST(req: NextRequest): Promise<NextResponse> {
25+
export async function POST(req: Request): Promise<NextResponse> {
2626
const expectedSecret = nonEmpty(process.env.REVALIDATE_SECRET);
2727
if (expectedSecret == null) {
2828
return NextResponse.json(

0 commit comments

Comments
 (0)