Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: conditionally render example code in Next depending on SSR context #3414

Merged
merged 1 commit into from Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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