DEV Community

Discussion on: How to solve "window is not defined" errors in React and Next.js

Collapse
 
natashajaved profile image
natashajaved • Edited

What if I want to find geolocation using navigator object in getStaticProps and make api request on that basis and use the response to fill data in pre rendering. Need to do this for SEO