Static JSON GeoIP API
Note: Updated the demo to use Gatsby as well as
useState from React Hooks!
This is a proof of concept Static JSON GeoIP API using Netlify’s redirect & rewrite rules using country codes (de, us, etc…) to route the response of the GET call to a specific file under a folder structure following the below pattern set in their
_redirects file. See this project’s available redirects here.