Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/custom-environment-variables.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# This file allows us to define custom environment variables that can be used to override parts of the config. This
# provides a convenient mechanism for specifying different config values in different environments.

# App-wide settings
app:
# The SHA1 of the commit which resulted in this application
buildVersion: CIRCLE_SHA1

# Google Analytics tracking config
googleAnalytics:
trackingID: CONFIG_GOOGLE_ANALYTICS_TRACKING_ID
Expand Down
8 changes: 8 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const siteUrl = cfg.has("siteUrl")
? process.env["DEPLOY_URL"]
: "http://localhost:3000"

const buildVersion = cfg.has("app.buildVersion")
? cfg.get("app.buildVersion")
: "N/A"

const plugins = ["plugin-image-zoom"]

if (enablePosthog) {
Expand Down Expand Up @@ -256,6 +260,10 @@ const config = {
appUrl: posthogConfig.appUrl,
}
: undefined,
metadata: [
{ name: "buildVersion", content: buildVersion },
{ name: "buildTime", content: new Date().toString() },
],
}),
}

Expand Down