We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc4615 commit b04a6baCopy full SHA for b04a6ba
playwright.config.ts
@@ -1,6 +1,9 @@
1
import { defineConfig, devices } from '@playwright/experimental-ct-react'
2
import react from '@vitejs/plugin-react'
3
4
+const port = 5173
5
+const baseURL = `http://localhost:${port}`
6
+
7
/**
8
* Read environment variables from file.
9
* https://github.com/motdotla/dotenv
@@ -32,7 +35,7 @@ export default defineConfig({
32
35
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
33
36
use: {
34
37
/* Base URL to use in actions like `await page.goto('/')`. */
- baseURL: process.env.BASE_URL || 'http://localhost:3000',
38
+ baseURL,
39
40
ctViteConfig: {
41
plugins: [react()],
0 commit comments