Skip to content

Commit cec19a7

Browse files
committed
better comment
1 parent 3e999fd commit cec19a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/node/src/integrations/modules.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const INTEGRATION_NAME = 'Modules';
1313
declare const __SENTRY_SERVER_MODULES__: Record<string, string>;
1414

1515
/**
16-
* This is replaced at build time with the modules loaded by the server.
16+
* `__SENTRY_SERVER_MODULES__` can be replaced at build time with the modules loaded by the server.
17+
* Right now, we leverage this in Next.js to circumvent the problem that we do not get access to these things at runtime.
1718
*/
1819
const SERVER_MODULES = typeof __SENTRY_SERVER_MODULES__ === 'undefined' ? {} : __SENTRY_SERVER_MODULES__;
1920

0 commit comments

Comments
 (0)