mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Import Sentry in middleware
This commit is contained in:
@@ -97,6 +97,9 @@ export type LookupResult = PublishedContentWithCache & {
|
||||
* The middleware also takes care of persisting the visitor authentication state.
|
||||
*/
|
||||
export async function middleware(request: NextRequest) {
|
||||
// Instrumentation is not loaded correctly...
|
||||
await import('./sentry');
|
||||
|
||||
const { url, mode } = getInputURL(request);
|
||||
|
||||
setTag('url', url.toString());
|
||||
|
||||
Reference in New Issue
Block a user