Description
When running server-side static HTML generation using the new middleware-v2 architecture, a few components and guides threw errors during strict isolated node parsing:
CubeLayoutButton attempts to read mainContentLayout from viewportController synchronously in construct. In SSR, the button is rendered in the markdown parse stream before having a parent hierarchy, resulting in a TypeError: Cannot read properties of null.
- The
GoogleAuthDemo.md and Authorization.md guides contained env language tokens which are not recognized by highlight.js, causing it to log console.error and crash the strict rendering pipeline.
Proposed Solution
- Add optional chaining (
?.) to CubeLayoutButton.mjs viewport controller reference.
- Change
```env to ```bash in the MCP authorization guides.
Description When running server-side static HTML generation using the new
middleware-v2architecture, a few components and guides threw errors during strict isolated node parsing:CubeLayoutButtonattempts to readmainContentLayoutfromviewportControllersynchronously inconstruct. In SSR, the button is rendered in the markdown parse stream before having a parent hierarchy, resulting in aTypeError: Cannot read properties of null.GoogleAuthDemo.mdandAuthorization.mdguides containedenvlanguage tokens which are not recognized byhighlight.js, causing it to logconsole.errorand crash the strict rendering pipeline.Proposed Solution
?.) toCubeLayoutButton.mjsviewport controller reference.```envto```bashin the MCP authorization guides.