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 <noreply@paperclip.ing>
This commit is contained in:
2026-03-24 23:08:31 +00:00
parent 796ec48ad1
commit eed5724d5f
+1 -1
View File
@@ -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',
},