We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e086b commit 250d7fcCopy full SHA for 250d7fc
packages/node-core/src/integrations/spotlight.ts
@@ -20,8 +20,12 @@ const _spotlightIntegration = ((options: Partial<SpotlightConnectionOptions> = {
20
return {
21
name: INTEGRATION_NAME,
22
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?");
+ try {
+ 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
29
}
30
connectToSpotlight(client, _options);
31
},
0 commit comments