Skip to content

Commit 250d7fc

Browse files
committed
fix it
1 parent a3e086b commit 250d7fc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/node-core/src/integrations/spotlight.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ const _spotlightIntegration = ((options: Partial<SpotlightConnectionOptions> = {
2020
return {
2121
name: INTEGRATION_NAME,
2222
setup(client) {
23-
if (typeof process === 'object' && process.env?.NODE_ENV && process.env.NODE_ENV !== 'development') {
24-
logger.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?");
23+
try {
24+
if (process.env.NODE_ENV && process.env.NODE_ENV !== 'development') {
25+
logger.warn("[Spotlight] It seems you're not in dev mode. Do you really want to have Spotlight enabled?");
26+
}
27+
} catch {
28+
// ignore
2529
}
2630
connectToSpotlight(client, _options);
2731
},

0 commit comments

Comments
 (0)