Skip to content

Integration compatibility

StratoLMS is an Astro site. Integrations are allowed, and the build guard (stratolmsGuard) is the last integration so a later plugin cannot make a paid lesson static or weaken the CSP.

  • The fixtures/integration-compat site (P3.2)
  • @astrojs/mdx, @astrojs/sitemap, @astrojs/rss (already in the starter)

Analytics, error reporting, and hosted fonts. Declare hosts in stratolms.config.mjs under csp.additions. buildCsp rejects 'unsafe-inline' in script-src, wildcards, and HTTP hosts.

Shiki syntax highlighting and KaTeX need csp.allowInlineStyleAttributes: true.

  • <ClientRouter /> — not supported by Astro’s CSP
  • @astrojs/partytown — inline bootstrap and worker proxying defeat the CSP
  • @astrojs/db — use the StratoLMS store
  • Starlight — its own routing and styling; run documentation as a separate site
  • Any integration that sets output: 'server', turns sessions on, or makes /learn static — the guard stops those builds

Change adapters with stratolms init --adapter, never astro add <adapter>.