Skip to main content

Properties

(request: Request, requestContext: WeaverseNextRequestContext) => WeaverseNextS…
required
Type: WeaverseNextRequestContextWeaverseNextServerClientWeaverseNextServerClientReuse the app’s server-client factory so the loader runs with the same component registry and commerce (storefront) context as page loads.The optional second argument is the validated, same-origin route context reconstructed from the request body. It is undefined for legacy bodies that carry no routeContext, so a one-argument (request) => client callback remains valid. Consumers must still source project ID, Studio host, API bases/keys, and env from server config — never from this browser-provided context.