LiveReactIslands.SSR.ViteRenderer (LiveReactIslands SSR Vite v0.1.1)
View SourceVite dev server SSR renderer implementation using HTTP.
Implements the LiveReactIslands.SSR.Renderer behaviour to provide server-side rendering of React components via Vite's dev server.
This renderer is designed for development mode and communicates with a Vite dev server running the SSR middleware plugin.
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts the ViteRenderer GenServer.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Starts the ViteRenderer GenServer.
Options
:vite_url- URL of the Vite dev server (default: http://127.0.0.1:5173):timeout- Request timeout in milliseconds (default: 5000)
Examples
# Start with defaults
{:ok, _pid} = LiveReactIslands.SSR.ViteRenderer.start_link()
# Start with custom URL
{:ok, _pid} = LiveReactIslands.SSR.ViteRenderer.start_link(vite_url: "http://localhost:3000")