Nuxt/docs/content/6.deployment/presets/lambda.md
Daniel Roe c75c03e0bb
docs: add deployment (#211)
Co-authored-by: Alexander Lichter <manniL@gmx.net>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2021-06-14 14:31:30 +02:00

647 B

Lambda function

  • Compatible with common lambda formats (AWS, Netlify and others)

Entrypoint

With { preset: 'lambda' } the result will be an entrypoint that exports a handler function that responds to an event and returns a response. This preset is compatible with AWS Lambda and Netlify Functions.

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

import { handler } from './.output/server'

// Use programmatically
const { statusCode, headers, body } = handler({ path: '/' })