From 784c08765adcbd5a2a6b19d9cfed1ae52870b1d6 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Thu, 10 Mar 2022 22:30:55 +0100 Subject: [PATCH] Added environment variable for singleuser --- server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/index.ts b/server/src/index.ts index 96a6865..0db3555 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -16,7 +16,7 @@ if (!isModule) { const DEEMIX_SERVER_PORT = process.env.DEEMIX_SERVER_PORT ?? argv.port const DEEMIX_HOST = process.env.DEEMIX_HOST ?? argv.host - const IS_SINGLE_USER = !!argv.singleuser + const IS_SINGLE_USER = !!process.env.DEEMIX_SINGLE_USER ?? !!argv.singleuser const server = new DeemixServer(DEEMIX_HOST, DEEMIX_SERVER_PORT, IS_SINGLE_USER) server.init()