- Create a
.envfile that contains aGOOGLE_SERVICE_ACCOUNTenv variable. The variable's value should be a service account with theVertex AI Userrole - Globally install
dotenv-cliusingnpm install -g dotenv-cli
- Use this command to run lighthouse with the custom audit:
npm run test -- YOUR_SITE, specifying the URL to test instead ofYOUR_SITE