LiveViewReact.SSR.NodeJS (liveview_react v1.0.0)

Copy Markdown View Source

Implements SSR by using NodeJS package.

It invokes the render export from the configured ESM server bundle with one flat transport-v2 request object containing version, component, identifierPrefix, props, streams, events, and slots.

Summary

Functions

Returns the priv directory for the application that owns the SSR bundle.

Functions

server_path(application)

@spec server_path(atom()) :: String.t()

Returns the priv directory for the application that owns the SSR bundle.

The application is explicit because the calling process may not belong to an OTP application during Mix tasks, tests, or supervision-tree construction.