web: review environment variables before the Datadog integration
Created by: valerybugakov
Context
As a part of the preparation for https://github.com/sourcegraph/sourcegraph/issues/33992, this PR improves documentation for the web application environment variables.
Changes
- All web application environment variables are consolidated in the
environment-config
module to keep one source of truth. - The documentation for web application environment variables is improved.
- Added
ENABLE_MONITORING
environment variable that will be used to enable Datadog RUM in the development environment in the follow-up pull request. - Renamed
DISABLE_TELEMETRY
toENABLE_TELEMETRY
to keep telemetry disabled in the development environment by default. - Renamed
CLIENT_PROXY_DEVELOPMENT_PORT
toSOURCEGRAPH_HTTP_PORT
to keep it consistent with otherwebpack-dev-server
environment variables. - success-banner.ts is converted to TS.
Test plan
The CI should be green, and all commands for starting the web application and Storybook should behave without any changes.
App preview:
Check out the client app preview documentation to learn more.