aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 16:37:16 +0100
committerChocobozzz <me@florianbigard.com>2022-01-03 16:37:16 +0100
commit9270bd3a7e6802b99a6ab12910c6c702d290fd4b (patch)
tree8b705faa2fc08d9d5a8b6fc3e0ab27555b5b019c /server.ts
parent36ebdfac6e3cc6296a3049eb44e0621e72b6a184 (diff)
downloadPeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.gz
PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.tar.zst
PeerTube-9270bd3a7e6802b99a6ab12910c6c702d290fd4b.zip
Migrate to --enable-source-maps option
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/server.ts b/server.ts
index f4f448e6b..4f139d31d 100644
--- a/server.ts
+++ b/server.ts
@@ -1,11 +1,6 @@
1import { registerTSPaths } from './server/helpers/register-ts-paths' 1import { registerTSPaths } from './server/helpers/register-ts-paths'
2registerTSPaths() 2registerTSPaths()
3 3
4import { isTestInstance } from './server/helpers/core-utils'
5if (isTestInstance()) {
6 require('source-map-support').install()
7}
8
9// ----------- Node modules ----------- 4// ----------- Node modules -----------
10import express from 'express' 5import express from 'express'
11import morgan, { token } from 'morgan' 6import morgan, { token } from 'morgan'
@@ -19,7 +14,7 @@ import { program as cli } from 'commander'
19process.title = 'peertube' 14process.title = 'peertube'
20 15
21// Create our main app 16// Create our main app
22const app = express().disable("x-powered-by") 17const app = express().disable('x-powered-by')
23 18
24// ----------- Core checker ----------- 19// ----------- Core checker -----------
25import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' 20import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init'
@@ -135,6 +130,7 @@ import { HttpStatusCode } from './shared/models/http/http-error-codes'
135import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' 130import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache'
136import { ServerConfigManager } from '@server/lib/server-config-manager' 131import { ServerConfigManager } from '@server/lib/server-config-manager'
137import { VideoViews } from '@server/lib/video-views' 132import { VideoViews } from '@server/lib/video-views'
133import { isTestInstance } from './server/helpers/core-utils'
138 134
139// ----------- Command line ----------- 135// ----------- Command line -----------
140 136