diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-17 10:03:55 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 66170ca8c64fa4e76f3830e4a02a11345a03093b (patch) | |
tree | d2ef070a8e3cc98badcf6492f4d7db345c157d91 /server/initializers | |
parent | 109d893ff5353c3061af3062cf9443bcba39aafc (diff) | |
download | PeerTube-66170ca8c64fa4e76f3830e4a02a11345a03093b.tar.gz PeerTube-66170ca8c64fa4e76f3830e4a02a11345a03093b.tar.zst PeerTube-66170ca8c64fa4e76f3830e4a02a11345a03093b.zip |
Use process.env.npm_package_version
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index cd4d4e847..93ccb7da8 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -18,8 +18,8 @@ const LAST_MIGRATION_VERSION = 400 | |||
18 | 18 | ||
19 | // --------------------------------------------------------------------------- | 19 | // --------------------------------------------------------------------------- |
20 | 20 | ||
21 | // API version | ||
22 | const API_VERSION = 'v1' | 21 | const API_VERSION = 'v1' |
22 | const PEERTUBE_VERSION = process.env.npm_package_version || 'unknown' | ||
23 | 23 | ||
24 | const PAGINATION = { | 24 | const PAGINATION = { |
25 | COUNT: { | 25 | COUNT: { |
@@ -645,6 +645,7 @@ registerConfigChangedHandler(() => { | |||
645 | export { | 645 | export { |
646 | WEBSERVER, | 646 | WEBSERVER, |
647 | API_VERSION, | 647 | API_VERSION, |
648 | PEERTUBE_VERSION, | ||
648 | HLS_REDUNDANCY_DIRECTORY, | 649 | HLS_REDUNDANCY_DIRECTORY, |
649 | P2P_MEDIA_LOADER_PEER_VERSION, | 650 | P2P_MEDIA_LOADER_PEER_VERSION, |
650 | AVATARS_SIZE, | 651 | AVATARS_SIZE, |