import { createServer , proxy } from 'aws-serverless-express' ; import { Context } from 'aws-lambda' ; import { createApp } from './main' ; const app = createApp ( ) ; const server = createServer ( app , undefined , [ ] ) ; export const handler = ( event , context ) => proxy ( server , event , context ) ;