diff options
| author | Fuwn <[email protected]> | 2022-03-09 19:04:17 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-09 19:04:17 -0800 |
| commit | 3c4a278db3e5b9696269caefad2bfaa79578704c (patch) | |
| tree | 096febe388721081a092f09582bdd9589c6b6cbd /src/lib.rs | |
| parent | feat(index): git commit hash on index (diff) | |
| download | api-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.tar.xz api-worker-3c4a278db3e5b9696269caefad2bfaa79578704c.zip | |
refactor: use vergen for build variables
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -62,7 +62,7 @@ pub async fn main( .get("/v2/version", |_, _| { Response::from_json(&serde_json::json!({ "crate_version": env!("CARGO_PKG_VERSION"), - "git_commit_hash": env!("GIT_COMMIT_HASH"), + "git_commit_hash": env!("VERGEN_GIT_SHA"), }))? .with_cors(&utils::cors()) }) |