diff --git a/.jest/jest.config.js b/.jest/jest.config.js index 2b65b267..906c213a 100644 --- a/.jest/jest.config.js +++ b/.jest/jest.config.js @@ -23,7 +23,9 @@ const esModules = [ 'escape-string-regexp', 'markdown-table', 'web-namespaces', - '@rainbow-me/rainbowkit' + '@rainbow-me/rainbowkit', + 'wagmi', + '@wagmi/core' ].join('|') module.exports = { diff --git a/gatsby-ssr.tsx b/gatsby-ssr.tsx index e188d354..182376df 100644 --- a/gatsby-ssr.tsx +++ b/gatsby-ssr.tsx @@ -7,6 +7,8 @@ export const wrapPageElement: GatsbySSR['wrapPageElement'] = wrapPageElementWithLayout export const onRenderBody = ({ setPostBodyComponents, setHtmlAttributes }) => { + setHtmlAttributes({ lang: 'en' }) + const isEnabled = process.env.NODE_ENV === 'production' if (!isEnabled) { @@ -18,7 +20,6 @@ export const onRenderBody = ({ setPostBodyComponents, setHtmlAttributes }) => { 'data-website-id': UMAMI_WEBSITE_ID } - setHtmlAttributes({ lang: 'en' }) setPostBodyComponents([