diff --git a/pages/_document.js b/pages/_document.js index 084b6f64..04e0ecff 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -11,17 +11,17 @@ class MyDocument extends Document { let useGATracking = false; //remove this block when not need after softlaunch - let hasBasicAuth = - typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined"; + // let hasBasicAuth = + // typeof process.env.BASIC_AUTH_CREDENTIALS != "undefined"; - console.log("hasbasicAuth:", hasBasicAuth); + // console.log("hasbasicAuth:", hasBasicAuth); - if (ctx.req && ctx.res) { - hasBasicAuth && - (await basicAuthMiddleware(ctx.req, ctx.res, { - users: process.env.BASIC_AUTH_CREDENTIALS, - })); - } + // if (ctx.req && ctx.res) { + // hasBasicAuth && + // (await basicAuthMiddleware(ctx.req, ctx.res, { + // users: process.env.BASIC_AUTH_CREDENTIALS, + // })); + // } if (ctx.req && ctx.req.headers.cookie) { typeof ctx.req.cookies.CookiePolicy != "undefined"