diff --git a/gatsby-shared.tsx b/gatsby-shared.tsx index 3558a61fd7..b7ba73b748 100644 --- a/gatsby-shared.tsx +++ b/gatsby-shared.tsx @@ -1,6 +1,7 @@ import { GatsbyBrowser, Script } from 'gatsby' const GATSBY_REO_DEV_CLIENT_ID = process.env.GATSBY_REO_DEV_CLIENT_ID +const GATSBY_APOLLO_IO_APP_ID = process.env.GATSBY_APOLLO_IO_APP_ID export const wrapPageElement: GatsbyBrowser['wrapPageElement'] = ({ element @@ -13,6 +14,11 @@ export const wrapPageElement: GatsbyBrowser['wrapPageElement'] = ({ {` !function(){var e,t,n;e="${GATSBY_REO_DEV_CLIENT_ID}",t=function(){Reo.init({clientID:"${GATSBY_REO_DEV_CLIENT_ID}"})},(n=document.createElement("script")).src="https://static.reo.dev/"+e+"/reo.js",n.async=!0,n.onload=t,document.head.appendChild(n)}();`} )} + {GATSBY_APOLLO_IO_APP_ID && ( + + )} ) }