From 723c5752bd7e5632a29d5ffe9313b3ae30d852ba Mon Sep 17 00:00:00 2001 From: Juned Khan Date: Sun, 2 Jul 2023 16:22:37 +0530 Subject: [PATCH] doc: Added documentation to enable debug logging in prod Signed-off-by: Juned Khan --- docs/content/dev/setup/frontend.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/content/dev/setup/frontend.md b/docs/content/dev/setup/frontend.md index 618307347..ea80e1200 100644 --- a/docs/content/dev/setup/frontend.md +++ b/docs/content/dev/setup/frontend.md @@ -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'); +```