Skip to content

Commit 2875d24

Browse files
Changed Request to NextRequest to solve the error (#2215)
Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
1 parent 319b520 commit 2875d24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/webhooks/sync-data.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ These steps apply to any Clerk event. To make the setup process easier, it's rec
105105
<Tab>
106106
```ts {{ filename: 'app/api/webhooks/route.ts' }}
107107
import { verifyWebhook } from '@clerk/nextjs/webhooks'
108+
import { NextRequest } from 'next/server'
108109

109-
export async function POST(req: Request) {
110+
export async function POST(req: NextRequest) {
110111
try {
111112
const evt = await verifyWebhook(req)
112113

0 commit comments

Comments
 (0)