diff --git a/server/src/index.ts b/server/src/index.ts index d0c0b15..650d47f 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -37,13 +37,13 @@ Deno.serve({ port: PORT, hostname: ROOT_DOMAIN }, async (req) => { req, isDidSubdomain ? { - did: `did:${subdomain.at(-1) === "did-plc" ? "plc" : "web"}:${ - subdomain.slice(0, -1).join(".") - }`, - } + did: `did:${subdomain.at(-1) === "did-plc" ? "plc" : "web"}:${subdomain + .slice(0, -1) + .join(".")}`, + } : { - handle: subdomain.join(".") as `${string}.${string}`, - }, + handle: subdomain.join(".") as `${string}.${string}`, + } ); return new Response(res.body, { ...res, @@ -58,6 +58,6 @@ Deno.serve({ port: PORT, hostname: ROOT_DOMAIN }, async (req) => { `Could not resolve domain "${subdomain.join(".")}.${ROOT_DOMAIN}"`, { status: 404, - }, + } ); });