From 86006f6ace384de1cf53aff124a08eae65baf6d8 Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Mon, 21 Aug 2023 16:20:09 -0700 Subject: [PATCH] Use env vars to set version strings --- lib/App.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/App.js b/lib/App.js index cc480d14..6120aec4 100644 --- a/lib/App.js +++ b/lib/App.js @@ -25,8 +25,9 @@ function App(derby, name, filename, options) { this.derby = derby; this.name = name; this.filename = filename; - this.scriptHash = '{{DERBY_SCRIPT_HASH}}'; - this.bundledAt = '{{DERBY_BUNDLED_AT}}'; + this.scriptHash = process.env.DERBY_SCRIPT_HASH || '{{DERBY_SCRIPT_HASH}}'; + this.bundledAt = process.env.DERBY_BUNDLED_AT || '{{DERBY_BUNDLED_AT}}'; + this.buildVersion = process.env.DERBY_BUILD_VERSION; this.Page = createAppPage(derby); this.proto = this.Page.prototype; this.views = new templates.Views();