@celsian/vura-adapter-lambda
v0.8.3
Published
AWS Lambda deployment adapter for Vura applications
Maintainers
Readme
@celsian/vura-adapter-lambda
AWS Lambda adapter for Vura applications.
What it does
@celsian/vura-adapter-lambda runs after vura build and packages the build output into an AWS Lambda + API Gateway v2 deployment. It generates a Lambda handler entry and a SAM/CloudFormation template so you can deploy with the AWS CLI or sam deploy. All Vura route kinds (serverless, task) map to Lambda functions; hot routes (kind: 'hot') require persistent Node.js processes and cannot run on Lambda.
Install
npm install @celsian/vura-adapter-lambdaMinimal example
vura.config.ts:
import { defineConfig } from '@celsian/vura-core';
import { lambdaAdapter } from '@celsian/vura-adapter-lambda';
export default defineConfig({
adapter: lambdaAdapter({ region: 'us-east-1' }),
});Build and test locally with the AWS SAM CLI:
vura build
sam local start-api --template dist/template.yamlDocumentation
API routes and all four page modes are supported. src/middleware.ts and server
actions are not executed by this adapter; protect data in route handlers and
page loaders. ISR is not provided, and streaming pages are buffered.
License
MIT — and it will stay MIT.
