From 2d2fe5a37eabe920a7b98f711e688ca906bb7f65 Mon Sep 17 00:00:00 2001 From: Restioson Date: Fri, 18 Oct 2024 16:16:50 +0200 Subject: [PATCH] fixup! chore(ci): set up Lighthouse auditing in CI --- app/lighthouserc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/lighthouserc.js b/app/lighthouserc.js index 73bbcc8..e45b711 100644 --- a/app/lighthouserc.js +++ b/app/lighthouserc.js @@ -1,9 +1,10 @@ +let env = process.env; + module.exports = { - scripts: { - "lchi:server": "python manage.py runserver localhost:3000" - }, ci: { collect: { + startServerCommand: `DATABASE_URL=${env.DATABASE_URL} DJANGO_SETTINGS_MODULE=${env.DJANGO_SETTINGS_MODULE} ` + `python manage.py runserver localhost:3000`, url: [ "http://localhost:3000", "http://localhost:3000/search/",