diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-03 16:37:16 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-03 16:37:16 +0100 |
commit | 9270bd3a7e6802b99a6ab12910c6c702d290fd4b (patch) | |
tree | 8b705faa2fc08d9d5a8b6fc3e0ab27555b5b019c /server.ts | |
parent | 36ebdfac6e3cc6296a3049eb44e0621e72b6a184 (diff) | |
download | PeerTube-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.ts | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,11 +1,6 @@ | |||
1 | import { registerTSPaths } from './server/helpers/register-ts-paths' | 1 | import { registerTSPaths } from './server/helpers/register-ts-paths' |
2 | registerTSPaths() | 2 | registerTSPaths() |
3 | 3 | ||
4 | import { isTestInstance } from './server/helpers/core-utils' | ||
5 | if (isTestInstance()) { | ||
6 | require('source-map-support').install() | ||
7 | } | ||
8 | |||
9 | // ----------- Node modules ----------- | 4 | // ----------- Node modules ----------- |
10 | import express from 'express' | 5 | import express from 'express' |
11 | import morgan, { token } from 'morgan' | 6 | import morgan, { token } from 'morgan' |
@@ -19,7 +14,7 @@ import { program as cli } from 'commander' | |||
19 | process.title = 'peertube' | 14 | process.title = 'peertube' |
20 | 15 | ||
21 | // Create our main app | 16 | // Create our main app |
22 | const app = express().disable("x-powered-by") | 17 | const app = express().disable('x-powered-by') |
23 | 18 | ||
24 | // ----------- Core checker ----------- | 19 | // ----------- Core checker ----------- |
25 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' | 20 | import { checkMissedConfig, checkFFmpeg, checkNodeVersion } from './server/initializers/checker-before-init' |
@@ -135,6 +130,7 @@ import { HttpStatusCode } from './shared/models/http/http-error-codes' | |||
135 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | 130 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' |
136 | import { ServerConfigManager } from '@server/lib/server-config-manager' | 131 | import { ServerConfigManager } from '@server/lib/server-config-manager' |
137 | import { VideoViews } from '@server/lib/video-views' | 132 | import { VideoViews } from '@server/lib/video-views' |
133 | import { isTestInstance } from './server/helpers/core-utils' | ||
138 | 134 | ||
139 | // ----------- Command line ----------- | 135 | // ----------- Command line ----------- |
140 | 136 | ||