'How to deploy Node & Microsoft Azure Function to client side app on Netlify?

I am currently developing an app locally that has a front end based in the browser in addition to a back end that uploads to Microsoft Azure storage. The project files are bundled together using WebPack to ensure the API calls work.

The has a few components in order for it to run on my machine:

  1. npm run build (first command to assemble the src files into the distribution folder)

  2. func host start (Executed after the build to trigger the HTTP Micsoft Azure Function)

I am deploying to Netlify and my question is fairly basic. Once I have configured the build environment to construct my distribution folders how am I to trigger 'func host start' every time someone refreshes the browser?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source