mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
doc: Added documentation to enable debug logging in prod
Signed-off-by: Juned Khan <junedkhanc101@gmail.com>
This commit is contained in:
parent
1d3a4df622
commit
723c5752bd
1 changed files with 9 additions and 0 deletions
|
@ -52,3 +52,12 @@ You can inspect the generated production-bundle files to look for optimization i
|
|||
|
||||
1. run `yarn analyze`. This will overwrite any existing builds!
|
||||
2. Open the generated `.next/server/analyze/server.html` in your favourite browser
|
||||
|
||||
## Enable Debug Logging in Production
|
||||
|
||||
The debug logger can be enabled in production by setting `debugLogging` in the browser's local storage to `true`.
|
||||
This can be done e.g. by executing this JavaScript command in the browser's console.
|
||||
|
||||
```javascript
|
||||
window.localStorage.setItem("debugLogging", 'true');
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue