fix: use plc.directory instead of plc.wtf for DID resolution

The plc.wtf mirror is returning HTTP 502, breaking the static build
when getStaticPaths fetches the PDS endpoint. plc.directory is the
canonical PLC directory and returns the same JSON shape.
This commit is contained in:
Julien Calixte
2026-05-23 16:07:09 +02:00
parent 031beba8ac
commit aa36e00576

View File

@@ -8,7 +8,7 @@ export const getServiceEndpoint = async () => {
if (serviceEndpoint) {
return serviceEndpoint
}
const response = await fetch(`https://plc.wtf/${did}`)
const response = await fetch(`https://plc.directory/${did}`)
const {
service: [{ serviceEndpoint: endpoint }],
} = await response.json()