Open DallasHoff opened 5 months ago
I am pretty sure there is a way to set the NODE_ENV
variable to development
or do you have dependencies on other modules/settings having it set to production
?
I couldn't find anything about disabling that behavior in Playwright. Googling "site:playwright.dev 'NODE_ENV'" returns no results. The behavior is only mentioned when you run tests with NODE_ENV not set to production. It prints a warning to the console and overrides it to "production" automatically.
Maybe Playwright should allow us to disable that behavior, but I can also see other people running into problems with dev mode requiring NODE_ENV=development
for different reasons.
Dev mode currently requires:
devMode.enabled
is true in the module configNODE_ENV
is set todevelopment
When running tests with Playwright, Playwright will always override
NODE_ENV
and set it toproduction
. This makes it impossible to use auth dev mode when running Playwright tests.I understand that requiring
NODE_ENV=production
to enable dev mode is an extra set of guard rails, but can we consider changing the dev mode requirements in some way to not require a certainNODE_ENV
value?