aboutsummaryrefslogtreecommitdiff
path: root/src/api/core/mod.rs
diff options
context:
space:
mode:
authorDaniel García <[email protected]>2022-09-08 18:01:27 +0200
committerDaniel García <[email protected]>2022-09-08 18:01:27 +0200
commitedca4248aa76020d8b966b1c484aba80df8b13fc (patch)
tree9a9773558c1ac16176553c027d7e3623102478dd /src/api/core/mod.rs
parentb1b6bc9be05329f8892683664586635aced0c39a (diff)
downloadvaultwarden-edca4248aa76020d8b966b1c484aba80df8b13fc.tar.gz
vaultwarden-edca4248aa76020d8b966b1c484aba80df8b13fc.zip
Use optional env as this variable isn't defined during CI
Diffstat (limited to 'src/api/core/mod.rs')
-rw-r--r--src/api/core/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/core/mod.rs b/src/api/core/mod.rs
index 094863d6..f296a3c9 100644
--- a/src/api/core/mod.rs
+++ b/src/api/core/mod.rs
@@ -206,7 +206,7 @@ fn config() -> Json<Value> {
let domain = crate::CONFIG.domain();
Json(json!({
"version": crate::VERSION,
- "gitHash": env!("GIT_REV"),
+ "gitHash": option_env!("GIT_REV"),
"server": {
"name": "Vaultwarden",
"url": "https://github.com/dani-garcia/vaultwarden"