Fix missing window
causing NextJS builds to fail
#1855
Merged
window
causing NextJS builds to fail
#1855