diff --git a/src/templates/ReferenceTemplate.js b/src/templates/ReferenceTemplate.js index 095602443..16c5c4dcb 100644 --- a/src/templates/ReferenceTemplate.js +++ b/src/templates/ReferenceTemplate.js @@ -19,6 +19,7 @@ const ReferenceTemplate = ({ data }) => { const { frontmatter } = mdx; const { title, description, component } = frontmatter; + if (typeof window === 'undefined') global.window = {}; const componentData = window?.__NR1_SDK__?.default?.[component]; return (