-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client/env): split CRUD_MODE into WRITER_MODE and DEV_MODE #8383
Conversation
Currently we place a lot of “local environment” features/setup behind the CRUD_MODE environment variable. There's some problems with that: - It enables a bunch of writer-specific features we really don't need as devs, such as index.json reloading every few seconds, and the flaws toolbar - It isn't enabled on :5042, so testing certain features (such as glean) aren't possible on that port, as they require further setup locally which isn't done when CRUD_MODE is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just 1-2 nits.
@LeoMcA How about prefixing this PR with |
This pull request has merge conflicts that must be resolved before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs merge conflict resolution. Will look at it again afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although we might want to redirect from http://localhost:3000/ to http://localhost:3000/en-US/ if REACT_APP_WRITER_MODE
is disabled.
Currently we place a lot of “local environment” features/setup behind
the CRUD_MODE environment variable. There's some problems with that:
as devs, such as index.json reloading every few seconds, and the flaws
toolbar
aren't possible on that port, as they require further setup locally
which isn't done when CRUD_MODE is false
(MP-292)