doc: Added documentation to enable debug logging in prod

Signed-off-by: Juned Khan <junedkhanc101@gmail.com>
This commit is contained in:
Juned Khan 2023-07-02 16:22:37 +05:30 committed by Philip Molares
parent 1d3a4df622
commit 723c5752bd

View file

@ -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');
```