npm.io
0.25.0 • Published 4d ago

@backstage-community/plugin-lighthouse-backend

Licence
Apache-2.0
Version
0.25.0
Deps
7
Size
54 kB
Vulns
0
Weekly
0
Stars
392

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:

  1. Install the plugin using:
# From your Backstage root directory
yarn --cwd packages/backend add @backstage-community/plugin-lighthouse-backend
  1. In your packages/backend/src/index.ts make 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

Keywords