diff options
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, |