t3-oss / t3-env

https://env.t3.gg
MIT License
2.67k stars 86 forks source link

Recipe example for Playwright #219

Open rydkvist opened 5 months ago

rydkvist commented 5 months ago

Hi there!

Is there a possibility to use the env config inside a playwright.config.js?


import { env } from '~/env'

export default defineConfig({
  ...
  forbidOnly: !!env.CI,
  ...
  retries: env.CI ? 2 : 0,
  ...
  workers: env.CI ? 1 : undefined,
  ....
)}

If it is, could you create a recipe on how to adopt this in the docs? Similar to how you've done with Storybook.

Many thanks for the efforts on this package 🙏🏼