Allows you to run Lighthouse from AWS Lambda using Serverless Headless Chrome.
- You are using node 8.10.0 (AWS Lambda does not support anything more recent at time of writing)
- You have yarn installed
- serverless version 1.35.1 installed.
- AWS credentials configured.
git clone https://github.com/rhino88/serverless-aws-nodejs-lighthouse.git
cd serverless-aws-nodejs-lighthouse
yarn
# deploys the function to AWS
serverless deploy
serverless invoke -f lighthouse -l --data '{"target":"https://www.google.com/"}'