Created
February 8, 2019 15:35
-
-
Save juliantellez/56f0f428bd8d6e734c7c3afe59881f74 to your computer and use it in GitHub Desktop.
Using Lambcycle Plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lambcycle from 'lambcycle' | |
import sentryPlugin from './sentryPlugin' | |
const myApplicationLogic = async (event, context) => { | |
return await someLogic() | |
} | |
const handler = lambcycle(myApplicationLogic) | |
.register([ | |
sentryPlugin({ | |
key: process.env.SENTRY_KEY, | |
project: process.env.SENTRY_PROJECT, | |
}) | |
]); | |
export default handler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment