From bea8aa0a2ecc46a8c05e86460fccc44805d08646 Mon Sep 17 00:00:00 2001 From: shaka Date: Fri, 3 Jun 2022 11:56:42 +0200 Subject: [PATCH] Prevent of double /api in the url --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index e99b697d..33bf989d 100644 --- a/src/config.ts +++ b/src/config.ts @@ -38,7 +38,7 @@ const getConfigDefault = ( ): DefaultClientConfiguration => ({ provider: "cg", client_id: "platform@d4tobd5qpizwa.eu.platform.sh", - account_url: `${baseUrl}/api`, + account_url: `${baseUrl.replace(/(\/api)$/i, "")}/api`, api_url, authentication_url: baseUrl, scope: [],