You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gatsby): Support non-serializable SDK options (#4064)
The current Gatsby SDK requires setting the SDK options in `gatsby-config.js`, which doesn't support non-serializable options. This PR introduces `sentry.config.js`, a config file where you can define your `Sentry.init` with non-serializable options. Both approaches are supported, but only one can be used (the config file approach is prioritized).
"Sentry Logger [Warn]: The SDK was initialized in the Sentry config file, but options were found in the Gatsby config. These have been ignored, merge them to the Sentry config if you want to use them.
91
+
Learn more about the Gatsby SDK on https://docs.sentry.io/platforms/javascript/guides/gatsby/",
92
+
]
93
+
`);
94
+
// eslint-disable-next-line no-console
95
+
expect(console.error).not.toHaveBeenCalled();
96
+
expect(sentryInit).not.toHaveBeenCalled();
97
+
expect((windowasany).Sentry).toBeDefined();
98
+
});
99
+
100
+
it('not initialized in injected config, without pluginParams',()=>{
0 commit comments