Discussing the Hono Middleware for Azure Functions Custom Handler (on Nammatham v3) #2674
Replies: 4 comments 2 replies
-
cc: @Marplex |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @yusukebe, I'm really appreciate your work, extending Hono Framework is my best idea for maintaining the project which requires type-safe leveraging Hono type-inference system. |
Beta Was this translation helpful? Give feedback.
-
Hi! So if I understand this correctly, the standard azure functions library won't bundle with esbuild. You're bypassing this problem by not using the library at all, and using a custom handler that runs the script with Bun. Is this correct? |
Beta Was this translation helpful? Give feedback.
-
Hi! So if I understand this correctly, the standard azure functions library won't bundle with esbuild. You're bypassing this problem by not using the library at all, and using a custom handler that runs the script with Bun. Is this correct? |
Beta Was this translation helpful? Give feedback.
-
Dear all who developing Hono Framework, I've quiet new in Hono, I would like to dicuss the design middleware or has alternative for more cleaner code and type-safety
During design and developing Nammatham v3 (Azure Functions Framework), I've heard the good news the that's the Hono support Azure Functions.
However, that Hono adapter for Azure Functions based on the official Azure Functions v4 which same idea behind the Nammatham v2.
The major problem of the official Azure Functions v4 is it cannot be bundled and cannot use with the monorepo
Azure/azure-functions-nodejs-library#201, with Azure Custom Handler I can build, bundling with monorepo and deploy successfully.
So, I've design the Hono Middleware for Azure Functions
see summary design below (which support type infer from Hono):
the result will be
Note: This code is run with Azure Functions Host which is act like a reverse proxy forward request to Hono router
Or you can see all design interface in the Playground
Beta Was this translation helpful? Give feedback.
All reactions