Skip to content

Instantly share code, notes, and snippets.

@mxro
Created February 20, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxro/a705613044eb2cb7e4af5d216f567c02 to your computer and use it in GitHub Desktop.
Save mxro/a705613044eb2cb7e4af5d216f567c02 to your computer and use it in GitHub Desktop.
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