Consistent ENV variables

Hey everyone, I was wondering if there is a settled approach to the naming of env variables?

If not, then it would be great to gather quick opinions on choosing a consistent approach to the redwood environment variable names.

I quickly produced a list of the current environment variable names - hopefully I found most and didn’t miss too many. These are:

RWJS_DELAY_RESTART
RWJS_CWD
RWJS_WATCH_NODE_MODULES
RWJS_SRC_ROOT
RWJS_API_GRAPHQL_URL
RWJS_API_DBAUTH_URL
RWJS_API_URL
RWJS_DEV_API_URL

RWFW_PATH

RW_PATH

REDWOOD_DISABLE_TELEMETRY
REDWOOD_WEB_URL
REDWOOD_ENV_TEST
REDWOOD_X
REDWOOD_VERBOSE_TELEMETRY
REDWOOD_CI
REDWOOD_ENV_EDITOR

One option could be that anything internal could be prefixed with RWFW_ and anything user facing could use RWJS_?

Of course any changes as a result will likely be breaking so I’m interested in gathering opinions and then, hopefully, broad consensus.

1 Like