playframework - How to determine dev/prod mode within javascript in play framework -


i running application playframework 2.5.2. in javascript, determine if in dev or prod mode. in dev mode, want wrap tools provide additional logging can slow down page amounts of data seen in production.

one page saw recommended checking process.env.node_env. however, in browser (chrome version 60.0.3112.90 on mac), process.env empty object.

i looked through process , window, not have obvious me indicating play mode.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -