Skip to content

Commit a8160dc

Browse files
author
Luca Forstner
committed
fix segfault?
1 parent 6d35c6b commit a8160dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/nextjs/src/server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { addEventProcessor, addTracingExtensions, applySdkMetadata, getClient, setTag } from '@sentry/core';
22
import { getDefaultIntegrations, init as nodeInit } from '@sentry/node';
33
import type { NodeOptions } from '@sentry/node';
4-
import { logger } from '@sentry/utils';
4+
import { GLOBAL_OBJ, logger } from '@sentry/utils';
55

66
import { DEBUG_BUILD } from '../common/debug-build';
77
import { devErrorSymbolicationEventProcessor } from '../common/devErrorSymbolicationEventProcessor';
@@ -16,7 +16,7 @@ import { onUncaughtExceptionIntegration } from './onUncaughtExceptionIntegration
1616
export { captureUnderscoreErrorException } from '../common/_error';
1717
export { onUncaughtExceptionIntegration } from './onUncaughtExceptionIntegration';
1818

19-
const globalWithInjectedValues = global as typeof global & {
19+
const globalWithInjectedValues = GLOBAL_OBJ as typeof GLOBAL_OBJ & {
2020
__rewriteFramesDistDir__?: string;
2121
};
2222

0 commit comments

Comments
 (0)