From eed5724d5f718906cc2cf6a18be0cc03a20719ab Mon Sep 17 00:00:00 2001 From: Gandalf the Greybeard Date: Tue, 24 Mar 2026 23:08:31 +0000 Subject: [PATCH] fix: remove production Headlamp URL fallback in playwright.config.ts Fail fast with a clear error if HEADLAMP_URL is not set, rather than defaulting to the production Headlamp instance. Co-Authored-By: Paperclip --- playwright.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 16808ba..b916edf 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ retries: process.env.CI ? 1 : 0, reporter: 'list', use: { - baseURL: process.env.HEADLAMP_URL || 'https://headlamp.animaniacs.farh.net', + baseURL: process.env.HEADLAMP_URL || (() => { throw new Error('HEADLAMP_URL is required — run scripts/deploy-e2e-headlamp.sh first'); })(), trace: 'on-first-retry', screenshot: 'only-on-failure', },