使用Gatsby的Intercom插件集成Intercom

Using Gatsby's Intercom plugin to integrate Intercom

我已经尝试 https://github.com/toriihq/gatsby-plugin-intercom-spa and https://github.com/search?q=gatsby-plugin-intercom 尝试集成对讲机,但都没有成功。

这两个插件的 README 声明我只需要通过 npm 安装插件(在我的例子中我使用 yarn add)然后用相关代码片段更新 gatsby-config.js(并使用我的 Intercom app_id).

还有其他需要注意的步骤吗?

查看https://github.com/toriihq/gatsby-plugin-intercom-spa插件的源码,只在process.env.NODE_ENV === 'production.

时显示对讲机UI

您可能希望它在您的开发环境中本地加载?