I am under the impression that you can import api request handlers and call them directly inside of your getStaticProps function because of the documentation where it says:<