This is sample code on how to use Puppeteer alongside Lighthouse to run analysis on webpages behind an authentication wall. See the walkthrough at https://evanhalley.dev/post/lighthouse-pizza-teer.
- Create an account at https://salviospizza.hungerrush.com/
- Run
npm i
to download the dependencies. - Create a file in the root of this repo called
.env
with the following format.
USERNAME=your@email.com
PASSWORD=your-password
- Run the script by typing
node .
. - Two reports will be generated
report.html
andreport.json
.
If you are local to the Raleigh area, go ahead and order a Pizza and enjoy! 🍕