Skip to content

Commit 81b0bde

Browse files
fixup! feat(test): replace cloudflare open-next build test with playwright tests
still accept VERCEL_PREVIEW_URL to make PR go green
1 parent 1403dde commit 81b0bde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/site/playwright.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export default defineConfig({
1414
? {
1515
webServer: {
1616
command: process.env.PLAYWRIGHT_WEB_SERVER_COMMAND,
17-
url: process.env.PLAYWRIGHT_BASE_URL || 'http://127.0.0.1:3000',
17+
url:
18+
// TODO: remove the VERCEL_PREVIEW_URL option once
19+
// https://github.com/nodejs/nodejs.org/pull/7782 is merged
20+
process.env.VERCEL_PREVIEW_URL ||
21+
process.env.PLAYWRIGHT_BASE_URL ||
22+
'http://127.0.0.1:3000',
1823
timeout: 60_000 * 3,
1924
},
2025
}

0 commit comments

Comments
 (0)