I'm building a static app that uses serverless functions. Could Functionland provide the functions?


I have a next.js app that has 1 function in the `pages/api` route. I need to remove this to make the app capable of being deployed to IPFS as a static site. This function contains some code and parameters that shouldn't be accessible to the browser so I can't just add the function to a page. Could I replace my `pages/api` route with a Functionland function? For example let's say I had a next.js app with a button that downloads a file from IPFS when clicked. I want to keep the IPFS CID a secret to the end user, therefore, I can't simply add this function to the page. Could I make a Functionland function that fetches and streams this file to the browser for download?

Answers 0