diff --git a/next.config.mjs b/next.config.mjs index 3512470..012c812 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,6 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - allowedDevOrigins: ['192.168.100.102'], + // Allow a LAN device (e.g. a phone) to reach the dev server for on-device + // testing: set NEXT_DEV_ORIGIN to your machine's LAN IP before `npm run dev`. + allowedDevOrigins: process.env.NEXT_DEV_ORIGIN ? [process.env.NEXT_DEV_ORIGIN] : [], output: 'export', basePath: process.env.NEXT_PUBLIC_BASE_PATH || '', trailingSlash: true, diff --git a/playwright.config.ts b/playwright.config.ts index ca19a59..2349e26 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -6,6 +6,8 @@ export default defineConfig({ testDir: './tests/e2e', outputDir: './playwright-results', reporter: [['html', { outputFolder: 'playwright-report', open: 'never' }]], + // Retry timing-only failures (hydration, cold-compile) not real ones. + retries: process.env.CI ? 2 : 0, use: { baseURL: `http://localhost:${port}`, trace: 'on-first-retry',