2.3.0-dev.7 • Published 5 years ago

@marblejs/serverless v2.3.0-dev.7

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

@marblejs/serverless

AWS Lambda serverless proxy for Marble.js. Based on work of @mflorence99.

Installation

$ npm i @marblejs/serverless-aws-lambda

Requires @marblejs/core to be installed.

Documentation

For the latest updates, documentation, change log, and release information visit docs.marblejs.com and follow @marble_js on Twitter.

Usage

import { createLambda, ProxyType } from '@marblejs/severless';
import httpListener from './httpListener';

export = createLambda({
  httpListener, // Your app goes here
  type: ProxyType.AWS, // Currently we support only AWS Lambda with API Gateway
  proxyOptions: { // Optional configuration for specified ProxyType
    binaryMimeTypes: ['application/octet-stream'], 
  },
});

License: MIT