Conversation
|
|
Hi @Mushus Can you add a test in |
|
Hi @yusukebe, Thank you for your response. After reviewing my implementation, I realized there are two key issues:
Given these issues, I believe the implementation in #271 is clearly of higher quality. That said, I also noticed that there are still some deployment scenarios not fully addressed even in #274, particularly regarding asset handling and environment-specific configurations. Many of the concerns I encountered may still be relevant for ensuring broader compatibility and flexibility, so I’d be happy to collaborate on improving and expanding this area further. |
This pull request adds support for deploying to AWS Lambda in
@hono/vite-build. This allows Hono applications to be easily run in an AWS Lambda environment.@hono/vite-build/aws-lambda).You can verify that an application built using create-hono-app is working at the following URL:
Examples x-basic template running on AWS Lambda Function URL
By the way, in thepublic/.assetsignorefile of thex-basictemplate,.vite/is listed. However, the outputdist/index.jsincludesOe.use("/.assetsignore",gt({root:"./"}));Oe.use("/favicon.ico",gt({root:"./"}));Oe.use("/.vite/*",gt({root:"./"}));Oe.use("/static/*",gt({root:"./"}));. This seems to be the build result of serveStatic. Is it okay that.vite/is included here and not ignored in the code?I researched .assetsignore and learned it's a Cloudflare-specific configuration file. Please disregard this question.