From 9270bd3a7e6802b99a6ab12910c6c702d290fd4b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 3 Jan 2022 16:37:16 +0100 Subject: Migrate to --enable-source-maps option --- shared/server-commands/server/server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index 617069b11..7b81da54d 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts @@ -217,11 +217,14 @@ export class PeerTubeServer { execArgv: options.nodeArgs || [] } + const peertubeArgs = options.peertubeArgs || [] + peertubeArgs.push('--enable-source-maps') + return new Promise((res, rej) => { const self = this let aggregatedLogs = '' - this.app = fork(join(root(), 'dist', 'server.js'), options.peertubeArgs || [], forkOptions) + this.app = fork(join(root(), 'dist', 'server.js'), peertubeArgs, forkOptions) const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs)) const onParentExit = () => { -- cgit v1.2.3