Lighthouse Backend
Lighthouse Backend allows you to run scheduled lighthouse Tests for each Website with the annotation lighthouse.com/website-url.
Setup
The Lighthouse backend plugin has support for the new backend system, here's how you can set that up:
- Install the plugin using:
# From your Backstage root directory
yarn --cwd packages/backend add @backstage-community/plugin-lighthouse-backend- In your
packages/backend/src/index.tsmake the following changes:
import { createBackend } from '@backstage/backend-defaults';
const backend = createBackend();
// ... other feature additions
+ backend.add(import('@backstage-community/plugin-lighthouse-backend'));
backend.start();Configuration
You can define how often and when the scheduler should run the audits:
lighthouse:
schedule:
frequency:
hours: 12 # Default: 1 day
timeout:
minutes: 30 # Default: 10 minutes