Phoenix.React.Runtime.Bun (Phoenix.React v0.7.3)

View Source

Phoenix.React.Runtime.Bun

Config in runtime.exs

import Config

config :phoenix_react_server, Phoenix.React.Runtime.Bun,
  cd: File.cwd!(),
  cmd: "/path/to/bun",
  # In dev mode, the server_js will be watched and recompiled when changed
  # In prod mode, this need to be precompiled with `mix phx.react.bun.bundle`
  server_js: Path.expand("bun/server.js", :code.priv_dir(:phoenix_react_server)),
  port: 5225,
  env: :dev

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(init_arg)