From c039cebd6a599fdd2ece425591aa63af8cc474a8 Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Sat, 28 Feb 2026 17:28:41 -0500 Subject: [PATCH] fix default service endpoint --- apps/main-app/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/main-app/src/index.ts b/apps/main-app/src/index.ts index 5cc53b9..c2aaf76 100644 --- a/apps/main-app/src/index.ts +++ b/apps/main-app/src/index.ts @@ -333,7 +333,8 @@ export const app = new Elysia({ .get('/.well-known/did.json', ({ request, set }) => { set.headers['Content-Type'] = 'application/did+json' - const serviceEndpoint = Bun.env.SERVICE_ENDPOINT ?? new URL(request.url).origin + const origin = new URL(request.url).origin + const serviceEndpoint = Bun.env.SERVICE_ENDPOINT ?? origin.replace(/^http:/, 'https:') const contexts = ['https://www.w3.org/ns/did/v1'] if (servicePublicKeyMultibase) { contexts.push('https://w3id.org/security/multikey/v1') -- 2.54.0