crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Development mode warning printed when in test mode

Open nwjsmith opened this issue 2 years ago • 0 comments

Summary

Steps to reproduce

Run GRAPHILE_ENV=test node -e 'require("postgraphile")' or NODE_ENV=test node -e 'require("postgraphile")'

Expected results

Since we're explicitly in test mode, I would expect to see no warnings meant to catch production deployments of Grafast's development mode.

Actual results

When running GRAPHILE_ENV=test node -e 'require("postgraphile")':

Grafast is running in development mode due to `GRAPHILE_ENV=test`; this is recommended for development environments (and strongly discouraged in production), but will impact on performance - in particular, planning will be significantly more expensive.

When running NODE_ENV=test node -e 'require("postgraphile")'

Grafast is running in development mode due to `NODE_ENV=test`; this is recommended for development environments (and strongly discouraged in production), but will impact on performance - in particular, planning will be significantly more expensive.

Additional context

Filed as suggested in the Discord forum.

nwjsmith avatar Apr 19 '24 14:04 nwjsmith