diff --git a/gatsby-ssr.js b/gatsby-ssr.js index 2bce4d329..48ac90251 100644 --- a/gatsby-ssr.js +++ b/gatsby-ssr.js @@ -1,7 +1,9 @@ import React from 'react'; +import { Script } from 'gatsby'; import { ThemeProvider } from '@emotion/react'; import { renderStylesToString } from '@leafygreen-ui/emotion'; import LeafyGreenProvider from '@leafygreen-ui/leafygreen-provider'; + import { renderToString } from 'react-dom/server'; import { theme } from './src/theme/docsTheme'; import EuclidCircularASemiBold from './src/styles/fonts/EuclidCircularA-Semibold-WebXL.woff'; @@ -9,7 +11,7 @@ import EuclidCircularASemiBold from './src/styles/fonts/EuclidCircularA-Semibold export const onRenderBody = ({ setHeadComponents }) => { setHeadComponents([ // GTM Pathway -