tangled
alpha
login
or
join now
nekomimi.pet
/
wisp.place-monorepo
88
fork
atom
Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol.
wisp.place
88
fork
atom
overview
issues
10
pulls
pipelines
fix default service endpoint
nekomimi.pet
1 week ago
c039cebd
b420409d
1/2
deploy-wisp.yml
success
40s
test.yml
failed
32s
+2
-1
1 changed file
expand all
collapse all
unified
split
apps
main-app
src
index.ts
+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
336
-
const serviceEndpoint = Bun.env.SERVICE_ENDPOINT ?? new URL(request.url).origin
336
336
+
const origin = new URL(request.url).origin
337
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')