Creates the ReactRouterPlugin.
Registers an ISsrService under CAPABILITIES.SSR, mounts a catch-all route (all 7 HTTP verbs) for SSR, optionally registers a static-asset route, and registers a react-router health indicator.
ISsrService
CAPABILITIES.SSR
react-router
Plugin configuration
The plugin instance
import { ReactRouterPlugin } from '@setu-ts/react-router-plugin';app.register(ReactRouterPlugin({ serverBuildPath: './build/server/index.js', assetsDir: './build/client/assets',})); Copy
import { ReactRouterPlugin } from '@setu-ts/react-router-plugin';app.register(ReactRouterPlugin({ serverBuildPath: './build/server/index.js', assetsDir: './build/client/assets',}));
0.1.0
Creates the ReactRouterPlugin.
Registers an
ISsrServiceunderCAPABILITIES.SSR, mounts a catch-all route (all 7 HTTP verbs) for SSR, optionally registers a static-asset route, and registers areact-routerhealth indicator.