Skip to content

Commit

Permalink
fix: conditionally render example code in Next depending on SSR conte…
Browse files Browse the repository at this point in the history
…xt (#3414)
  • Loading branch information
darthtrevino committed Mar 29, 2022
1 parent 4fa53c8 commit 9c848d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/test-suite-next/package.json
Expand Up @@ -3,8 +3,7 @@
"private": true,
"scripts": {
"start:next": "next dev",
"//build-about": "next build isn't working atm, need to investigate why",
"//build": "next build",
"build": "next build",
"lint": "next lint"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-suite-next/pages/index.js
Expand Up @@ -27,7 +27,7 @@ function AppGuts() {
</option>
))}
</select>
<Example />
{typeof window !== 'undefined' ? <Example /> : null}
</div>
)
}
Expand Down

0 comments on commit 9c848d8

Please sign in to comment.