Created
October 15, 2022 11:48
-
-
Save trnktms/044ded1b6cd93a5fb9e8ef2fcb405508 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextRequest } from 'next/server' | |
export const config = { | |
matcher: [ | |
/* force middleware on root */ | |
'/', | |
/* bypass middleware for Sitecore Experience Editor */ | |
'/((?!api/editing/.?).*)', | |
], | |
}; | |
export function middleware(request: NextRequest) { | |
console.log('MIDDLEWARE HIT'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment