-
Notifications
You must be signed in to change notification settings - Fork 56
feat(build): add Lambda / Lambda Edge adapter support and corresponding tests #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Updated package.json to include Lambda Edge adapter types and imports. - Added tests for the Lambda Edge adapter to ensure correct project building and output validation.
- Added `copyPublicDir` option to BuildOptions for controlling public directory copying during builds. - Updated default options to enable `copyPublicDir` by default. - Modified LambdaEdgeBuildOptions to include a `staticRoot` option and set `copyPublicDir` to false for Lambda Edge builds.
- Introduced AWS Lambda adapter with `lambdaBuildPlugin` - Added `aws-lambda` export in package.json for types and imports - Extended `BuildOptions` with new `sourcemap` option - Updated test suite to include AWS Lambda adapter build tests
🦋 Changeset detectedLatest commit: ae9189a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Of course, it is ok. |
|
Hi @harajune ! As @Mushus commented, we will go with this PR about supporting Lambda / Lambda Edge instead of #268. @Mushus, can you review this? I'll also do it later. |
|
Oh! Very happy to hear that! Any feedback is welcome. |
|
Any updates on the topic ? Would be nice to have vite supported aws with hono |
yusukebe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harajune Can you update the README?
|
@harajune Any chance of looking at this? (and updating README) |
What is this
The hono vite plugin for Lambda / Lambda Edge Deployment.
The plugin creates the packaged JS file of HonoX that can be deployed to AWS Lambda Edge.
Changes
Notes
I just found that this PR is a duplicate of #268 .
However, this PR has the support for the lambda edge, too.