TODOs Write tests. Make it scale better by caching to the file system. Right now, the same code is run twice (in both getStaticPaths() and getStaticProps()).