feat: unlighthouse configuration and dependencies

This commit is contained in:
Bart van der Braak 2024-02-18 22:21:07 +01:00
parent 5aa27c86a5
commit ab161e0b91
5 changed files with 3034 additions and 10 deletions

23
unlighthouse.config.ts Normal file
View file

@ -0,0 +1,23 @@
import { defineConfig } from 'unlighthouse'
export default defineConfig ({
site: process.env.SITE_URL || 'http://localhost:5173/',
scanner: {
samples: 1,
throttle: true,
},
cookies: [
{
name: 'pb_auth',
value: process.env.AUTH_COOKIE || '',
domain: 'localhost',
path: '/',
sameSite: 'Lax',
}
],
ci: {
reporter: 'jsonExpanded',
buildStatic: true,
budget: 65,
},
});