react-server icon indicating copy to clipboard operation
react-server copied to clipboard

feat: deploy / adapter / AWS Lambda

Open aheissenberger opened this issue 5 months ago • 15 comments

Adapter to deploy to AWS Lambda. Wraps the hattip middleware with a AWS Lambda specific handler. fix #30

Status with different Deployment Frameworks:

  • [X] Serverless Framework V3
  • [ ] sst V3 [^1] [^2]
  • [X] AWS CDK [^3]
  1. deploy is possible but dev mode fails because it always tries to bundle the application. This fails with the excluded /create-logger.mjs and cannot handle the native libs for fsevents and lightningcss
  2. I suggest to build a specific stack with dev server handling similar to [sst/ ion remix stack[(https://github.com/sst/ion/blob/b9c9760259ebcd4419dc15679ebdbc61babc517f/platform/src/components/aws/remix.ts)
  3. works, but function bundling needs to be deactivated

aheissenberger avatar Sep 25 '24 03:09 aheissenberger