Skip to content

Commit

Permalink
ref: Disable node session for next.js (#3558)
Browse files Browse the repository at this point in the history
* ref: Disable node session for next.js

* ref: Force disable session for next.js server
  • Loading branch information
HazAT authored May 18, 2021
1 parent 603b4ac commit 1c63bba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nextjs/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1c63bba

Please sign in to comment.