loadRequestHandler(serverBuildPath: string,mode: string,options?: { rrImportHook?: () => Promise<Record<string, unknown>>; }): Promise<SsrRuntime>
Default implementation of loadRequestHandler.
Lazily imports the app-provided server build (import(serverBuildPath)) and
the core react-router package (import('npm:react-router@8')), unwraps
the ServerBuild (default export), then returns a callable request handler.
Both the handler and the context-provider factory come from the SAME module
object, so the provider instance can never be tested against a different copy
of the RouterContextProvider class than the one it was constructed from.
Promise<SsrRuntime>
A promise resolving to the handler and its context factory