rsnext/examples/with-clerk/middleware.js
James Perkins d47f3929d1
Updating to latest version of Clerk (#41192)
## Documentation / Examples

Updating Clerk to latest example for our with-clerk. 


Co-authored-by: jamesp-codes <84922519+jamesp-codes@users.noreply.github.com>
Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
2022-10-05 17:34:49 +00:00

10 lines
253 B
JavaScript

import { withClerkMiddleware } from '@clerk/nextjs/server'
import { NextResponse } from 'next/server'
export default withClerkMiddleware((_req) => {
return NextResponse.next()
})
export const config = {
matcher: ['/api/getAuthenticatedUserId'],
}