vite-plugins icon indicating copy to clipboard operation
vite-plugins copied to clipboard

feat(build): add Lambda / Lambda Edge adapter support and corresponding tests

Open harajune opened this issue 7 months ago • 7 comments

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

  • Updated package.json to include Lambda / Lambda Edge adapter types and imports.
  • Added aws-lambda / lambda-edge ada[ter
  • Added tests for the Lambda Edge adapter to ensure correct project building and output validation.

Notes

I just found that this PR is a duplicate of #268 . However, this PR has the support for the lambda edge, too.

harajune avatar Jun 02 '25 11:06 harajune

🦋 Changeset detected

Latest commit: ae9189a834aaad2d82478611fa51d02b7153ed4e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/vite-build Minor

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

changeset-bot[bot] avatar Jun 02 '25 11:06 changeset-bot[bot]

HI @harajune

This PR also supports Lambda Edge, but supporting Lambda is duplicated by #268. We want to give priority to PRs for the earliest created. We will wait for a while for an update to #268.

yusukebe avatar Jun 04 '25 10:06 yusukebe

Of course, it is ok.

harajune avatar Jun 04 '25 12:06 harajune

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.

yusukebe avatar Jun 12 '25 00:06 yusukebe

Oh! Very happy to hear that!

Any feedback is welcome. I will also check the comment on #268 and consider improvements.

harajune avatar Jun 12 '25 06:06 harajune

Any updates on the topic ? Would be nice to have vite supported aws with hono

hadson172 avatar Aug 15 '25 08:08 hadson172

@harajune Any chance of looking at this? (and updating README)

danielsharvey avatar Oct 11 '25 11:10 danielsharvey