Created
January 21, 2018 03:52
-
-
Save pavelvlasov/eb6b9c3f31245fdfb95a4bc9df375995 to your computer and use it in GitHub Desktop.
html to png serverless.js
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
const baseConfig = require('../../serverless.base'); | |
const { defaultsDeep } = require('lodash'); | |
module.exports = defaultsDeep( | |
{ | |
service: 'html-to-png', | |
functions: { | |
renderToPng: { | |
name: '${self:provider.stage}-renderToPng', | |
handler: 'index.handler', | |
description: 'render input html to png and put into S3 bucket', | |
memorySize: 512, | |
timeout: 30 | |
} | |
}, | |
custom: { | |
webpack: './webpack.config.ts' | |
} | |
}, | |
baseConfig | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment