Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,11 +1,10 @@
|
||||
# Lighthouse-CI audit and Web-Vitals reporting
|
||||
|
||||
This document describes how the Lighthouse-CI audit is wired into the
|
||||
Toolctrl Boilerplate, how to run it locally when debugging a regression,
|
||||
HiveGrid Boilerplate, how to run it locally when debugging a regression,
|
||||
and how the Web-Vitals → Sentry bridge surfaces real-user metrics.
|
||||
|
||||
Spec: `docs/improvement-plan/10-compliance-polish/lighthouse.md`
|
||||
(Task #70). Companion artefacts: `.lighthouserc.staging.json`,
|
||||
Companion artefacts: `.lighthouserc.staging.json`,
|
||||
`.lighthouserc.json`, `scripts/lighthouse-puppeteer-auth.cjs`,
|
||||
`scripts/rotate-lighthouse-session-cookie.mjs`,
|
||||
`.github/workflows/lighthouse.yml`, `.gitea/workflows/lighthouse.yml`,
|
||||
@@ -80,8 +79,8 @@ Required workflow secrets:
|
||||
| `LIGHTHOUSE_LOGIN_EMAIL` | Email of the staging Lighthouse bot user. |
|
||||
| `LIGHTHOUSE_LOGIN_PASSWORD` | Password of the staging Lighthouse bot user. |
|
||||
|
||||
The session cookie name is `RJ_session`; workflows also pass
|
||||
`LIGHTHOUSE_SESSION_COOKIE_NAME=RJ_session` and
|
||||
The session cookie name is `hivegrid_session`; workflows also pass
|
||||
`LIGHTHOUSE_SESSION_COOKIE_NAME=hivegrid_session` and
|
||||
`LIGHTHOUSE_COOKIE_DOMAIN=boiler.saas-ctrl.com`.
|
||||
|
||||
During rollout the workflow still forwards the older
|
||||
@@ -93,7 +92,7 @@ each run mints a fresh cookie.
|
||||
## Authenticated routes
|
||||
|
||||
Auditing `/app/$tenant/*` and `/admin/*` needs that freshly minted
|
||||
`RJ_session` cookie. `scripts/lighthouse-puppeteer-auth.cjs` injects the
|
||||
`hivegrid_session` cookie. `scripts/lighthouse-puppeteer-auth.cjs` injects the
|
||||
cookie for protected URLs and is already wired into
|
||||
`.lighthouserc.staging.json`. The current staging target list still
|
||||
audits only public routes; add protected URLs once the exact tenant/admin
|
||||
@@ -109,10 +108,10 @@ expansion.
|
||||
|
||||
```sh
|
||||
# Build apps/web (writes hashed assets the runtime SW expects to cache)
|
||||
pnpm --filter @toolctrl/web build
|
||||
pnpm --filter @hivegrid/web build
|
||||
|
||||
# Serve the build at http://localhost:3000.
|
||||
pnpm --filter @toolctrl/web start &
|
||||
pnpm --filter @hivegrid/web start &
|
||||
|
||||
# Run the full LHCI flow against the local server
|
||||
pnpm verify:lighthouse
|
||||
|
||||
Reference in new issue
Block a user