aws-serverless-koa
aws-serverless-koa copied to clipboard
Runtime error from aws-serverless-express
trafficstars
Getting this issue - TypeError: params.context.succeed is not a function. It is fixed in newer aws-serverless-express package version.
Solution:
import serverlessExpress from '@vendia/serverless-express'; // ^4.5.4
import Koa from 'koa';
const app = new Koa();
module.exports.handler = serverlessExpress({
app: app.callback()
});