This commit is contained in:
EGOIST
2022-05-03 00:20:23 +08:00
parent ad96319774
commit 247c7f2762
+2 -1
View File
@@ -78,10 +78,11 @@ export const loader: LoaderFunction = async ({ request }) => {
console.log("login with token", accessToken.token)
}
// Custom domain
const nextUrl = new URL(data.next)
if (
nextUrl.host !== OUR_DOMAIN &&
nextUrl.hostname.endsWith(`.${OUR_DOMAIN}`)
!nextUrl.hostname.endsWith(`.${OUR_DOMAIN}`)
) {
// Check if the host belong to a site
const existing = await prisma.domain.findUnique({