AWS Lambda

Discover AWS Lambda preset for Nitro!

Preset: aws-lambda (switch to this preset)

Nitro provides a built-in preset to generate output format compatible with AWS Lambda.

The output entrypoint in .output/server/index.mjs is compatible with AWS Lambda format.

It can be used programmatically or as part of a deployment.

import { handler } from './.output/server'// Use programmaticallyconst { statusCode, headers, body } = handler({ rawPath: '/' })