From 302125bbd1da177686d833cb0b31d4d02129bd6d Mon Sep 17 00:00:00 2001 From: Viterbo Date: Tue, 9 Jan 2024 13:54:20 -0300 Subject: [PATCH] adding some logouts to debug --- src/boot/antelope.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/boot/antelope.ts b/src/boot/antelope.ts index 7c9fe61e..80262eb5 100644 --- a/src/boot/antelope.ts +++ b/src/boot/antelope.ts @@ -98,10 +98,14 @@ export default boot(({ app }) => { ant.config.setIndexerHealthCheckInterval(5000); // We only allow debug mode if we are not in production or in a sensitive environment + const weAreNotInProduction = process.env.NODE_ENV !== 'production'; + const weAreInLocalhost = document.location.hostname === 'localhost'; + const weAreInNetlify = document.location.hostname.includes('netlify'); + console.log('weAreNotInProduction:', weAreNotInProduction, 'weAreInLocalhost:', weAreInLocalhost, 'weAreInNetlify:', weAreInNetlify); ant.config.debug.allowDebugMode( - process.env.NODE_ENV !== 'production' || - document.location.hostname === 'localhost' || - document.location.hostname.includes('netlify') || + weAreNotInProduction || + weAreInLocalhost || + weAreInNetlify || true, // this is temporal for the demo );