+7
-7
server/src/index.ts
+7
-7
server/src/index.ts
···
37
37
req,
38
38
isDidSubdomain
39
39
? {
40
-
did: `did:${subdomain.at(-1) === "did-plc" ? "plc" : "web"}:${
41
-
subdomain.slice(0, -1).join(".")
42
-
}`,
43
-
}
40
+
did: `did:${subdomain.at(-1) === "did-plc" ? "plc" : "web"}:${subdomain
41
+
.slice(0, -1)
42
+
.join(".")}`,
43
+
}
44
44
: {
45
-
handle: subdomain.join(".") as `${string}.${string}`,
46
-
},
45
+
handle: subdomain.join(".") as `${string}.${string}`,
46
+
}
47
47
);
48
48
return new Response(res.body, {
49
49
...res,
···
58
58
`Could not resolve domain "${subdomain.join(".")}.${ROOT_DOMAIN}"`,
59
59
{
60
60
status: 404,
61
-
},
61
+
}
62
62
);
63
63
});