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: {