diff --git a/utils/middleware/domain.ts b/utils/middleware/domain.ts index 162286d..a4202c8 100644 --- a/utils/middleware/domain.ts +++ b/utils/middleware/domain.ts @@ -3,11 +3,9 @@ interface RequestParameters { r: pogo.Request, h: pogo.Toolkit } export default ({ r, h }: RequestParameters, domains: string[] | string, handler: any) => { if (domains.includes(r.host) || domains.includes("*")) { - console.log("Call actual Handler") return handler(r, h) } else { - console.log("Throw Error") return h.response({ error: "This Site/Fuction doesn't exist or is not available on the current domain." }).code(404)