发布

  • docs(nx-dev): add missing custom events back (#33082)

    frostbyte_neo 发布于 2025-10-15 19:50:14 +00:00

    This PR adds 404 and header custom events back for docs. These were
    previously in the Next.js docs pages, but were missing when we migrated
    to Astro.

    The sendCustomEvent and sendPageEvent functions did not account for
    the way that Astro is configured via window.__CONFIG object, so this
    PR fixes those too.

    Screenshots

    I ran these in preview mode with the site built with
    COOKIEBOT_DISABlED=true.

    Custom page view on 404:

    Screenshot 2025-10-15 at 3 10
05 PM

    Header docs CTA event:
    Screenshot 2025-10-15 at 3 13
02 PM

    Header Try Cloud CTA event:
    Screenshot 2025-10-15 at 3 10
10 PM

    下载附件