dw-innovation / dw-kid2-graph-frontend-prototype

dw-kid2-graph-frontend-prototype.vercel.app
MIT License
0 stars 0 forks source link

add `debug` flag for development #62

Open nikonikoniko opened 2 years ago

nikonikoniko commented 2 years ago

There should be a global debug value, which could be on by default in our local builds. It would allow statements such as if (debug) ... as well as us creating a component such as <Debug> <span>{...info...}</span> </Debug>. Additionally, log.debug would only fire on a truthy debug flag.

tlmn commented 2 years ago

@nikonikoniko Maybe use NODE_ENV=development to enable debug mode?