ServerlessAdapter
ServerlessAdapter adapts a Hono application for deployment on AWS Lambda,
Google Cloud Functions, Azure Functions, or CGI. It normalizes platform-specific
events into standard Request objects, routes them through the Hono app, and
returns platform-compatible responses.
Constructor
platform
Target platform. Valid values: "lambda", "gcf", "azure", "cgi", "auto".
When "auto", the platform is detected from environment variables.
Methods
Detect the serverless platform from environment variables.
Get the resolved platform identifier.
Route a serverless event through the Hono app.
Generate the platform-specific invocation URL.
Static: Create an AWS Lambda handler from a Hono app.
Static: Create a Google Cloud Functions handler from a Hono app.
Static: Create an Azure Functions handler from a Hono app.