From 1c63bbaae7fce84b60eabf4904b745e93151b108 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Tue, 18 May 2021 10:36:10 +0200 Subject: [PATCH] ref: Disable node session for next.js (#3558) * ref: Disable node session for next.js * ref: Force disable session for next.js server --- packages/nextjs/src/index.server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/nextjs/src/index.server.ts b/packages/nextjs/src/index.server.ts index 356e2c804e75..2a73d2e1bebd 100644 --- a/packages/nextjs/src/index.server.ts +++ b/packages/nextjs/src/index.server.ts @@ -22,6 +22,9 @@ export function init(options: NextjsOptions): void { options.integrations = [defaultRewriteFrames]; } + // Right now we only capture frontend sessions for Next.js + options.autoSessionTracking = false; + nodeInit(options); configureScope(scope => { scope.setTag('runtime', 'node');