Documentation
¶
Overview ¶
Package renderer supervises the Bun process that serves the Nuxt frontend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveEntrypoint ¶
ResolveEntrypoint resolves an explicit entrypoint, or finds the nearest web/.output/server/index.mjs while walking upward from cwd. The second return value is false outside a source checkout when no renderer was configured.
Types ¶
type Options ¶
type Options struct {
Entrypoint string
Socket string
APISocket string
Stdout io.Writer
Stderr io.Writer
}
Options configures the supervised Nuxt renderer.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is a running Bun renderer.
func Start ¶
Start launches Bun, waits for the renderer to accept connections on its socket, and then returns ownership of the process to the caller.
func (*Process) Close ¶
Close asks Bun to shut down gracefully, waits, and kills it only if it does not exit within ten seconds. The exact renderer socket is then removed.