For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/1.0.0/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/1.0.0/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/1.0.0/rules/bridge/ssr-server-entry-leak.md.

bridge/ssr-server-entry-leak

  • Category: correctness
  • Default severity: error

Issue

Browser-only Bridge React entries must not load inside node/SSR builds; doing so leaks DOM-oriented Bridge code into the server bundle.

How to fix it

Import the Bridge /server entry (or a node-safe path) for SSR/node targets. Override with ssrMode: "browser-only" when the build is not SSR, or set the rule to "off".

Suppress or retarget with rules["bridge/ssr-server-entry-leak"] set to "off" or a severity — see Suppressions and allowlists.

Sources