INNER CODE UNIT · JavaScript
func
ar90n/serverless-s3-local · serverless-s3-local/index.js:424
const func = async (s3Event) => {
const baseEnvironment = {
IS_LOCAL: true,
IS_OFFLINE: true,
};
try {
Object.assign(
process.env,
baseEnvironment,
this.service.provider.environment,
functionDefinition.environment || {}
);
const handler = lambda.get(functionKey);
handler.setEvent(s3Event);
await handler.runHandler();
} catch (e) {