-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
1.9.0
-
None
-
False
-
-
False
-
-
Description of problem:
In 6.5.2. Configuring RHDH to install plugins by using Extensions, for both operator and helm, the procedure calls out "Upgrade the [release] to include your extensions configuration file and update the NODE_ENV environment variable to development". That could make sense in a pre-production configuration, but standard usage of the variable would be to match where it runs, as other libraries will reference it and will run a little differently depending on what it was set to (potentially affecting log level, dependency loading, caching, etc).
Typically, that variable can be set to development, production, or test. I don't see this variable mentioned in the plugin guide or other installation sections, just here in the context of the extension catalog. Does it need to be called out in other plugin configuration procedures? Is there default backend behavior that assumes a certain value if not specified, so it only needs to be included to make it `development`? What is the impact of it being misconfigured?
We may need to update this or other related procedures to clarify when this setting is necessary and how it should be updated throughout a plugin's lifecycle (moving from a development to production RHDH instance).
Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
View https://docs.redhat.com/en/documentation/red_hat_developer_hub/1.8/html/installing_and_viewing_plugins_in_red_hat_developer_hub/rhdh-extensions-plugins_assembly-install-third-party-plugins-rhdh#proc-extensions-enabling-plugins-installation_rhdh-extensions-plugins or the same chapter in 1.9
Actual results:
Customers are recommended to set NODE_ENV to development, without context on what it controls, or if it will need to be changed in the future.
Expected results:
Customers should set it based on RHDH's intended usage (which is development in this context), and may need to adjust NODE_ENV between test, development, production (or at least production and development).
Reproducibility (Always/Intermittent/Only Once):
Build Details:
1.8 or 1.9 docs