remix/node-serve · FunctionView Source

serve

Summary

Starts a server that sends incoming requests to a Fetch API handler.

Signature

function serve(handler: FetchHandler, options: ServeOptions): Server;

Params

handler

The fetch handler to use for processing incoming requests

options

Server options

Returns

The running server