fix: potentially unstable custom domain name dns

This commit is contained in:
DIYgod
2023-06-06 12:13:57 +01:00
parent c94b90bcb4
commit 3c163dff59
2 changed files with 19 additions and 11 deletions
+4 -2
View File
@@ -55,8 +55,10 @@ export async function GET(req: Request) {
}
} else {
const tenant = await fetchTenant(realHost, 5)
return {
subdomain: tenant,
if (tenant) {
return {
subdomain: tenant,
}
}
}
},