Combo.Inertia.SSR (combo_inertia v2.0.0)

Copy Markdown View Source

The supervisor that provides SSR support for Inertia views.

This module is responsible for starting a pool of Node.js processes that can run the SSR rendering function for your application.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the Node.js supervisor and workers for SSR.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(init_arg)

Starts the Node.js supervisor and workers for SSR.

Options

  • :endpoint - (required) the Combo endpoint.
  • :path - (required) the path to the directory where the Node.js module file lives.
  • :module - (optional) the name of the Node.js module file. Defaults to "ssr".
  • :pool_size - (optional) the number of Node.js workers. Defaults to 4.