This commit is contained in:
oiov
2025-10-19 14:59:11 +08:00
parent be672722bf
commit 4e6c6b77b6

View File

@@ -184,8 +184,8 @@ function extractSlug(url: string): string | null {
export default auth(async (req) => {
try {
const { hostname, pathname } = new URL(req.url);
console.log("hostname", hostname, getHostname(hostname));
const { hostname, pathname, origin, host } = new URL(req.url);
console.log("hostname", hostname, getHostname(hostname), origin, host);
console.log("pathname", pathname);
console.log("isPortalDomain", isPortalDomain(hostname));
console.log("isBusinessDomain", isBusinessDomain(hostname));