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 a8b2dbb commit 5c45482Copy full SHA for 5c45482
src/plugins/docusaurus-plugin-segment/index.js
@@ -16,9 +16,8 @@ module.exports = function (context, options) {
16
}
17
18
if (!writeKey) {
19
- throw new Error(
20
- 'You need to specify a Segment writeKey in the plugin options',
21
- );
+ console.warn('You need to specify a Segment writeKey in the plugin options');
+ return {};
22
23
24
return {
0 commit comments