Commit 6a08009
Fix SSR crash: guard window.devicePixelRatio access in PeopleGrid
The constant at module scope accessed window.devicePixelRatio, which
throws ReferenceError during Docusaurus server-side rendering in Node.js.
Added typeof window check so it safely defaults to 100 during SSR.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c2ef42d commit 6a08009
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments