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
@@ -7,7 +7,7 @@
|
||||
* Auth strategy:
|
||||
* - For public/marketing routes (no `/app` or `/admin` prefix) we do not
|
||||
* attempt login; the script is a no-op so audits still run.
|
||||
* - For `/app/*` and `/admin/*` routes the script POSTs the boilerplate's
|
||||
* - For `/app/*` and `/admin/*` routes the script POSTs the HiveGrid
|
||||
* session cookie (provisioned by the staging Lighthouse runner via
|
||||
* `LIGHTHOUSE_SESSION_COOKIE`) directly into the browser context. This
|
||||
* mirrors the spec's "auth-via-cookie" strategy and avoids brittle UI
|
||||
@@ -17,17 +17,17 @@
|
||||
* - `LIGHTHOUSE_SESSION_COOKIE` — value of the staging session cookie for a
|
||||
* Lighthouse test user. Minted by the CI workflow before LHCI starts.
|
||||
* - `LIGHTHOUSE_SESSION_COOKIE_NAME` (optional) — session cookie name.
|
||||
* Defaults to `RJ_session`.
|
||||
* Defaults to `hivegrid_session`.
|
||||
* - `LIGHTHOUSE_COOKIE_DOMAIN` (optional) — overrides the cookie domain.
|
||||
* Defaults to the host of the audited URL.
|
||||
*
|
||||
* Refs: docs/improvement-plan/10-compliance-polish/lighthouse.md (Step (g)).
|
||||
* Refs: docs/architecture/lighthouse.md.
|
||||
*/
|
||||
|
||||
/** @type {(browser: import('puppeteer').Browser, ctx: { url: string, options: object }) => Promise<void>} */
|
||||
module.exports = async (browser, context) => {
|
||||
const sessionCookie = process.env.LIGHTHOUSE_SESSION_COOKIE;
|
||||
const sessionCookieName = process.env.LIGHTHOUSE_SESSION_COOKIE_NAME || "RJ_session";
|
||||
const sessionCookieName = process.env.LIGHTHOUSE_SESSION_COOKIE_NAME || "hivegrid_session";
|
||||
const targetUrl = context && context.url ? context.url : "";
|
||||
const isAuthenticatedRoute = /\/(app|admin)(\/|$)/.test(new URL(targetUrl).pathname);
|
||||
|
||||
|
||||
Reference in new issue
Block a user