ssr
Load and serve a JavaScript bundle server-side, executing it within the context of an isolated GraalVM JavaScript runtime; then, collect the output and return it as an HTTP response, within the provided HTML builder, which will be used to render the initial page frame.
Additional response properties, such as headers, may be set on the return result, as it is kept mutable. To change initial parameters like the HTTP status, use the response parameter via constructors like HttpResponse.notFound.
Return
HTTP response wrapping the generated React SSR output, or an HTTP response which serves a 404 if the asset could not be located at the specified path.
Parameters
Request we are responding to.
Path to the React SSR entrypoint script, which should be embedded within the asset section of the JAR.
Mutable HTTP response to fill with the resulting SSR content. Sets the status and headers.