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/vite/host-init-inject-ssr.md.

vite/host-init-inject-ssr

  • Category: correctness
  • Default severity: error

Issue

SSR and HTML-less frameworks need host init injected into the entry, not the HTML document, or federation bootstrap never runs on the server.

How to fix it

Set hostInitInjectLocation: 'entry' for SSR / Nitro / Nuxt-style apps.

Suppress or retarget with rules["vite/host-init-inject-ssr"] set to "off" or a severity — see Suppressions and allowlists.

Sources