mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Use process.env.npm_package_version
This commit is contained in:
parent
109d893ff5
commit
66170ca8c6
5 changed files with 43 additions and 41 deletions
|
@ -1,7 +1,7 @@
|
|||
import * as cors from 'cors'
|
||||
import * as express from 'express'
|
||||
import {
|
||||
HLS_STREAMING_PLAYLIST_DIRECTORY,
|
||||
HLS_STREAMING_PLAYLIST_DIRECTORY, PEERTUBE_VERSION,
|
||||
ROUTE_CACHE_LIFETIME,
|
||||
STATIC_DOWNLOAD_PATHS,
|
||||
STATIC_MAX_AGE,
|
||||
|
@ -19,7 +19,6 @@ import { join } from 'path'
|
|||
import { root } from '../helpers/core-utils'
|
||||
import { CONFIG } from '../initializers/config'
|
||||
|
||||
const packageJSON = require('../../../package.json')
|
||||
const staticRouter = express.Router()
|
||||
|
||||
staticRouter.use(cors())
|
||||
|
@ -205,7 +204,7 @@ async function generateNodeinfo (req: express.Request, res: express.Response) {
|
|||
version: '2.0',
|
||||
software: {
|
||||
name: 'peertube',
|
||||
version: packageJSON.version
|
||||
version: PEERTUBE_VERSION
|
||||
},
|
||||
protocols: [
|
||||
'activitypub'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue