This would allow use to give our apps a bigger surface area and also use more advanced features of azure functions
At the moment we are just redirecting everything to a single function with a custom function.json
This seems like a good move, although we probably should start it off as a separate preset/entry while it's still in preview and only supports Node 18.x.
Describe the feature
Azure relased a new model to programm azure functions. version
This would allow use to give our apps a bigger surface area and also use more advanced features of azure functions At the moment we are just redirecting everything to a single function with a custom function.json
Model V4
The new style would allow us to dynamically define endpoints and handlers in a single(or multiple) main.js that imports from a function folder.
Pros
Use the azure infrastuckture better
seperate concerns (static content, api,etc)
allow for more feature down the line
Future proofing
Cons
Feature Gap to other providers
More work for maintainers
Extra
This could also adress https://github.com/Azure/azure-functions-host/issues/293 In https://github.com/unjs/nitro/blob/8e06f2e4a65c6de0d2f2f3a5ef156ae3821ed60a/src/runtime/entries/azure-functions.ts#L12
Work required
Additional information