From 4363d73139967f2acab66246332ba5d9d81bd8c3 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 19 Sep 2026 09:49:50 +0100 Subject: [PATCH] Fix CI --- playwright.config.ts | 4 +--- vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 01f7ce9..15ded2e 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,7 +1,7 @@ import { defineConfig, devices } from '@playwright/test'; const port = 4173; -const baseURL = `https://127.0.0.1:${port}`; +const baseURL = `http://127.0.0.1:${port}`; const isCi = Boolean(process.env.CI); export default defineConfig({ @@ -13,12 +13,10 @@ export default defineConfig({ reporter: isCi ? [['list'], ['html', { open: 'never' }]] : 'list', use: { baseURL, - ignoreHTTPSErrors: true, trace: 'on-first-retry', }, webServer: { command: `npm run build && npm run preview -- --host 127.0.0.1 --port ${port}`, - ignoreHTTPSErrors: true, reuseExistingServer: false, timeout: 120_000, url: baseURL, diff --git a/vite.config.ts b/vite.config.ts index b063e3c..7e77800 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,8 +8,8 @@ import { defineConfig } from 'vitest/config'; const cssTargets = browserslistToTargets(browserslist()); const esbuildTargets = browserslistToEsbuild(); -export default defineConfig(({ command }) => ({ - plugins: [viteSingleFile(), ...(command === 'serve' ? [basicSsl()] : [])], +export default defineConfig(({ command, isPreview }) => ({ + plugins: [viteSingleFile(), ...(command === 'serve' && !isPreview ? [basicSsl()] : [])], css: { transformer: 'lightningcss', lightningcss: {