From f4588b7e69189c3e96b63d9413583dbc92ec9542 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar Date: Tue, 19 May 2026 11:44:39 +0200 Subject: [PATCH] fix(dev): point TENANT_REGISTRY_URL default at :8090 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Keycloak occupies :8080 in the dev stack; tenant-registry now defaults to :8090. Update the portal's fallback base URL + .env.example + the test that pins the URL it constructs. Prod is unaffected — the Orca manifest sets TENANT_REGISTRY_URL via service discovery (cross-VM), not a localhost port. Refs: M5.1 --- src/lib/tenant-registry.test.ts | 2 +- src/lib/tenant-registry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tenant-registry.test.ts b/src/lib/tenant-registry.test.ts index 4621c98..679641d 100644 --- a/src/lib/tenant-registry.test.ts +++ b/src/lib/tenant-registry.test.ts @@ -48,7 +48,7 @@ describe("fetchTenantBySlug", () => { globalThis.fetch = fetchSpy; await fetchTenantBySlug("acme"); expect(fetchSpy).toHaveBeenCalledWith( - "http://localhost:8080/v1/tenants/by-slug/acme", + "http://localhost:8090/v1/tenants/by-slug/acme", expect.any(Object), ); }); diff --git a/src/lib/tenant-registry.ts b/src/lib/tenant-registry.ts index cce17b5..60ed23c 100644 --- a/src/lib/tenant-registry.ts +++ b/src/lib/tenant-registry.ts @@ -13,7 +13,7 @@ export type Tenant = { }; function baseUrl(): string { - return process.env.TENANT_REGISTRY_URL ?? "http://localhost:8080"; + return process.env.TENANT_REGISTRY_URL ?? "http://localhost:8090"; } export async function fetchTenantBySlug(slug: string): Promise {