From dc81f2f82efdf1dbff48e47498eea02aa097bdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B8ran=20Brekke=20Svaland?= Date: Fri, 25 Oct 2024 11:52:22 +0200 Subject: [PATCH 1/2] fix: use correct port --- frontend/src/utils/keycloak.client.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/keycloak.client.ts b/frontend/src/utils/keycloak.client.ts index a4ab002b..9d3d2302 100644 --- a/frontend/src/utils/keycloak.client.ts +++ b/frontend/src/utils/keycloak.client.ts @@ -23,10 +23,16 @@ function parseSimPipeEnvironment(): { const port = localhostMatch[2]; // added 5173 to support deployment of frontend in dev mode // eslint-disable-next-line unicorn/prefer-ternary - if (port === ':8088' || port === ':5173') { + if (port === ':8088') { + console.log('localhost:', localhostMatch[1], 'port:', port); + graphqlUrl = 'http://localhost:8086/graphql'; + } else if (port === ':5173') { + console.log('localhost:', localhostMatch[1], 'port:', port); graphqlUrl = 'http://localhost:9000/graphql'; } else { + console.log("localhost match didn't match any known port", port); graphqlUrl = 'http://localhost:9000/graphql'; + console.log('Using default graphqlUrl', graphqlUrl); } } } else { From c6eec311beabdb4fa853a5a25049b71364ea82b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B8ran=20Brekke=20Svaland?= Date: Fri, 25 Oct 2024 11:53:02 +0200 Subject: [PATCH 2/2] fix: removed erronous text showing on screen --- frontend/src/routes/projects/analytics3/dag.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/routes/projects/analytics3/dag.svelte b/frontend/src/routes/projects/analytics3/dag.svelte index 9aafbac1..1cc5f7c9 100644 --- a/frontend/src/routes/projects/analytics3/dag.svelte +++ b/frontend/src/routes/projects/analytics3/dag.svelte @@ -197,7 +197,6 @@ }); -/* eslint-disable */