Skip to content

Instantly share code, notes, and snippets.

@pavelvlasov
Created January 21, 2018 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavelvlasov/eb6b9c3f31245fdfb95a4bc9df375995 to your computer and use it in GitHub Desktop.
Save pavelvlasov/eb6b9c3f31245fdfb95a4bc9df375995 to your computer and use it in GitHub Desktop.
html to png serverless.js
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