h3-aws-lambda-adapter
v1.0.3
Published
⚡️ Run h3 on AWS Lambda
Downloads
9
Readme
H3 AWS Lambda Adapter
⚡️ Use h3 with AWS Lambda
Install
npm install h3-aws-lambda-adapter
Usage
First, create app entry (app.mjs
):
import { createApp, defineEventHandler } from 'h3'
export const app = createApp()
app.use(defineEventHandler(() => 'Hello world!'))
Create AWS Lambda entry:
import { toAWSLambdaHandler } from 'h3-aws-lambda-adapter'
import { app } from './app.mjs'
export const handler = toAWSLambdaHandler(app)