web: expose build-info to the client
Created by: valerybugakov
Context
Add a simple mechanism that would expose with which commit the client bundle was built. This way, we could potentially see asap if a single container (server) deployment is running with a cached version of the bundle that should have been invalidated.
Follow-up to https://github.com/sourcegraph/sourcegraph/pull/38940 Closes https://github.com/sourcegraph/sourcegraph/issues/39034
Test plan
Build web application with COMMIT_SHA
env variable. Ensure that it's present in the window.buildInfo
object.
App preview:
Check out the client app preview documentation to learn more.