From 152a4ecc0432b68d42e7c277ac1a07ef705fd2ea Mon Sep 17 00:00:00 2001 From: Ben Merckx Date: Mon, 20 Nov 2023 17:21:28 +0100 Subject: [PATCH] Only try to reach the cloud instance if we have an API key available --- src/cloud/server/CloudHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloud/server/CloudHandler.ts b/src/cloud/server/CloudHandler.ts index 5fd6ad1fe..9c1d84c17 100644 --- a/src/cloud/server/CloudHandler.ts +++ b/src/cloud/server/CloudHandler.ts @@ -197,7 +197,7 @@ export function createCloudHandler( db: Database, apiKey: string | undefined ) { - const api = new CloudApi(config) + const api = apiKey ? new CloudApi(config) : undefined return new Handler({ auth: new CloudAuthServer({config, apiKey}), db,