Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

fix default service endpoint

+2 -1
+2 -1
apps/main-app/src/index.ts
··· 333 333 .get('/.well-known/did.json', ({ request, set }) => { 334 334 set.headers['Content-Type'] = 'application/did+json' 335 335 336 - const serviceEndpoint = Bun.env.SERVICE_ENDPOINT ?? new URL(request.url).origin 336 + const origin = new URL(request.url).origin 337 + const serviceEndpoint = Bun.env.SERVICE_ENDPOINT ?? origin.replace(/^http:/, 'https:') 337 338 const contexts = ['https://www.w3.org/ns/did/v1'] 338 339 if (servicePublicKeyMultibase) { 339 340 contexts.push('https://w3id.org/security/multikey/v1')