This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 8eb30468884 fix(docs): guard window reference in logging.ts for SSR 
compatibility (#38201)
8eb30468884 is described below

commit 8eb3046888458ecc241435a6ba8bb66b48ac07eb
Author: Evan Rusackas <[email protected]>
AuthorDate: Mon Feb 23 21:41:49 2026 -0500

    fix(docs): guard window reference in logging.ts for SSR compatibility 
(#38201)
---
 superset-frontend/packages/superset-core/src/utils/logging.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset-frontend/packages/superset-core/src/utils/logging.ts 
b/superset-frontend/packages/superset-core/src/utils/logging.ts
index 230dbdf2bdd..dd122cc9a80 100644
--- a/superset-frontend/packages/superset-core/src/utils/logging.ts
+++ b/superset-frontend/packages/superset-core/src/utils/logging.ts
@@ -17,7 +17,8 @@
  * under the License.
  */
 
-const console = window.console || {};
+const console =
+  typeof window !== 'undefined' ? window.console || {} : globalThis.console;
 const log = console.log || (() => {});
 
 const logger = {

Reply via email to