diff options
Diffstat (limited to 'shared/server-commands/server/server.ts')
-rw-r--r-- | shared/server-commands/server/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index 6aa4296b0..9a07eb36f 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts | |||
@@ -237,7 +237,7 @@ export class PeerTubeServer { | |||
237 | } | 237 | } |
238 | 238 | ||
239 | // Share the environment | 239 | // Share the environment |
240 | const env = Object.create(process.env) | 240 | const env = { ...process.env } |
241 | env['NODE_ENV'] = 'test' | 241 | env['NODE_ENV'] = 'test' |
242 | env['NODE_APP_INSTANCE'] = this.internalServerNumber.toString() | 242 | env['NODE_APP_INSTANCE'] = this.internalServerNumber.toString() |
243 | env['NODE_CONFIG'] = JSON.stringify(configOverride) | 243 | env['NODE_CONFIG'] = JSON.stringify(configOverride) |