mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +00:00
log request cookies in the middleware (#184)
This commit is contained in:
@@ -77,6 +77,8 @@ export type LookupResult = PublishedContentWithCache & {
|
||||
export async function middleware(request: NextRequest) {
|
||||
const { url, mode } = getInputURL(request);
|
||||
|
||||
console.log(`handling request with cookies ${request.cookies.toString()}`);
|
||||
|
||||
Sentry.setTag('url', url.toString());
|
||||
Sentry.setContext('request', {
|
||||
method: request.method,
|
||||
|
||||
Reference in New Issue
Block a user