Skip to content

Commit

Permalink
adding some logouts to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Jan 9, 2024
1 parent cc94098 commit 302125b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/boot/antelope.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit 302125b

Please sign in to comment.