add segment for API reference

This commit is contained in:
Shahed Nasser
2022-05-06 15:53:48 +03:00
parent a78d594542
commit 51bd461dce
3 changed files with 14 additions and 0 deletions

View File

@@ -65,6 +65,14 @@ module.exports = {
allowList: ["ALGOLIA_API_KEY"],
},
},
{
resolve: `gatsby-plugin-segment-js`,
options: {
prodKey: process.env.SEGMENT_API_KEY,
devKey: process.env.SEGMENT_API_KEY_DEV,
trackPage: true,
}
},
// `gatsby-plugin-preact`,
// {
// resolve: `gatsby-source-openapi-aggregate`,

View File

@@ -28,6 +28,7 @@
"gatsby-plugin-env-variables": "^2.1.0",
"gatsby-plugin-preact": "^5.9.0",
"gatsby-plugin-react-helmet": "^3.3.12",
"gatsby-plugin-segment-js": "^3.7.1",
"gatsby-plugin-theme-ui": "^0.10.1",
"gatsby-remark-autolink-headers": "^4.6.0",
"gatsby-source-filesystem": "^3.9.0",

View File

@@ -5425,6 +5425,11 @@ gatsby-plugin-react-helmet@^3.3.12:
dependencies:
"@babel/runtime" "^7.12.5"
gatsby-plugin-segment-js@^3.7.1:
version "3.7.1"
resolved "https://registry.yarnpkg.com/gatsby-plugin-segment-js/-/gatsby-plugin-segment-js-3.7.1.tgz#3432d59be0e45ee82f36a42cff060af220a0dd68"
integrity sha512-zAsjRrF77Kih7YRUJVp84thnODbzjDE44H6ePtdQfLVyPWiJj3IpS/WAwyRg9Cu3+FciFAT8WEjfJ2I02V0sUw==
gatsby-plugin-theme-ui@^0.10.1:
version "0.10.1"
resolved "https://registry.yarnpkg.com/gatsby-plugin-theme-ui/-/gatsby-plugin-theme-ui-0.10.1.tgz#d1ac7f4f1c4bf187694110a8670f0bb3ff470ad2"