LiveVue.SSR.QuickBEAM (LiveVue v1.1.0)

Copy Markdown View Source

Implements SSR using an embedded QuickBEAM JavaScript runtime.

Unlike LiveVue.SSR.NodeJS, this module runs JavaScript inside the BEAM process — no external Node.js installation required.

Setup

  1. Add quickbeam to your dependencies:

     {:quickbeam, "~> 0.8"}
  2. Configure production SSR:

     # config/prod.exs
     config :live_vue,
       ssr_module: LiveVue.SSR.QuickBEAM
  3. Add to your supervision tree in application.ex:

     children = [
       LiveVue.SSR.QuickBEAM,
       # ...
     ]

The module loads the SSR bundle from the path configured via :ssr_filepath (default "./static/server.mjs"), relative to the application's priv directory.

Summary

Functions

child_spec(opts)

start_link(opts \\ [])