Skip to content

Website disappears if fetching release info fails #8232

@mohd-akram

Description

@mohd-akram

URL:

https://nodejs.org/en/

Browser Name:

Safari

Browser Version:

26.0.1

Operating System:

macOS 15.7.1

How to reproduce the issue:

  1. Went to the Node.js website
  2. Website to not disappear after a few seconds
  3. Website disappears
  4. To reproduce:
--- a/apps/site/next-data/generators/majorNodeReleases.mjs
+++ b/apps/site/next-data/generators/majorNodeReleases.mjs
@@ -3,6 +3,7 @@
 import nodevu from '@nodevu/core';
 
 const nodevuData = await nodevu({ fetch });
+if (typeof window !== 'undefined') throw new Error('Poof!');
 
 /**
  * Filters Node.js release data to return only major releases with documented support.

Noticed this while opening the website in the company network which blocks githubusercontent.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions