How to add, enable or disable an experimental feature
This document will take you through how to add, enable, or disable an experimental feature in Sourcegraph. Experimental features are not fully released, but we welcome your feedback at feedback@sourcegraph.com or on twitter @sourcegraph!
NOTE: Changing these settings will affect the entire instance. We advise testing settings in a development environment before changing them in production.
Prerequisites
- This document assumes that Sourcegraph is installed
- Assumes you have administrator privileges on the instance
Steps to enable/disable
- Navigate to Administration > Global settings in the UI, or follow this link format for your
externalUrl/site-admin/global-settings - Scroll down to find where
experimentalFeaturesis located. Example:
JSON"experimentalFeatures": { "searchStreaming": true, "showSearchContext": false, },
- Locate the feature you would like to disable or enable, setting
truefor enable orfalsefor disable. - If adding a feature, follow the format
"featureName": true, - After changing the values in Administration > Global settings, the frontend will either restart automatically or you might be asked to restart the frontend for the changes to take effect.
- For more information, see Editing global settings for administrators
Further resources
- Sourcegraph - Configuration Settings
- Sourcegraph - Advanced configuration
- Learn more about new experimental features on our Blog or Twitter @sourcegraph