Repository navigation
example: add Hono in Zip example - #875
Open
mattenarle10 wants to merge 2 commits into
Open
mattenarle10 wants to merge 2 commits into
mattenarle10 wants to merge 2 commits into
Conversation
Run a Hono app on the managed Node.js runtime with @hono/node-server behind Lambda Web Adapter. Add it to the zip matrix so Verify Examples builds and boots it, and claim its manifest in dependabot.yml.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available: N/A
Description of changes:
This PR adds
examples/hono-zip. It runs a Hono application on the managed Node.js runtime with Lambda Web Adapter. The application is a plain Node.js HTTP server that starts with@hono/node-server. The layout followsexpressjs-zip.Changes:
examples/hono-zip: the application, the SAM template, and a README. The application has two dependencies and no build step..github/example-matrix.json: azipentry, so Verify Examples builds and boots the example..github/dependabot.yml: an npm entry for/examples/hono-zip/app.README.mdanddocs/guide/src/examples/overview.md: the example is in the two lists.One difference from
expressjs-zip:GET /returns the request ID and the function name, not the full request context and Lambda context. The full contexts contain the AWS account ID.Testing:
check-example-config.shandsam validate --lintpass.test-zip (hono-zip)job: https://github.com/mattenarle10/aws-lambda-web-adapter/actions/runs/37806313102nodejs22.x).GET /andGET /hello/lambdareturn 200.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.