Skip to content

Instantly share code, notes, and snippets.

@mxro

mxro/lambda.ts

Created Feb 20, 2021
Embed
What would you like to do?
require('source-map-support').install();
import awsServerlessExpress from 'aws-serverless-express';
import { app } from './server';
const server = awsServerlessExpress.createServer(app);
exports.handler = (event: any, context: any): any => {
awsServerlessExpress.proxy(server, event, context);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment