There's something in the setup or use with leaflet which means I can't get this running with server side rendering. apparently window isn't defined