Phoenix.React.Server (Phoenix.React v0.5.2)
View SourceThe React Render Server
Start React Render server by setting.
config :phoenix_react_server, Phoenix.React,
runtime: Phoenix.React.Runtime.Bun,
component_base: Path.expand("../assets/component", __DIR__),
cache_ttl: 10
Summary
Functions
Returns a specification to start this module under a supervisor.
Return the configuration of the React Render Server from Application.get_env(:phoenix_react_server, Phoenix.React)
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec config() :: [ {:cache_ttl, second()} | {:component_base, binary()} | {:render_timeout, millisecond()} | {:runtime, module()}, ... ]
Return the configuration of the React Render Server from Application.get_env(:phoenix_react_server, Phoenix.React)