@Robb0wen @jamstackconf Oh nice!
Not the same, but possibly helpful as a reference, my little http://vlolly.net demo site returns a view from a serverless function after doing a DB lookup. I imagine some similarities in that part.
https://github.com/philhawksworth/virtual-lolly/blob/master/src/functions/showLolly.js