Created
May 3, 2019 14:06
-
-
Save marcel-ploch/96e918332e1f1c53d0eb4cd6e815a82c to your computer and use it in GitHub Desktop.
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
service: | |
name: image-optimization | |
# Add the serverless-webpack plugin | |
plugins: | |
provider: | |
name: aws | |
runtime: nodejs8.10 | |
timeout: 60 # optional, in seconds, default is 6 | |
functions: | |
imageOptimization: | |
handler: handler.imageOptimization | |
events: | |
- http: | |
method: post | |
path: image/optimization | |
cors: | |
origin: '*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment