vise-ssr
vise-ssr copied to clipboard
Support more http servers
trafficstars
Currently only Express.js is used as the default SSR HTTP server. More HTTP servers will be available if they:
- load the generated SSR app server render bundle
- load server-hooks config from generated app bundle
- put server logic in server hooks and wrap them as a server hook plugin
- create HookLifeCycle instance using loaded server-hooks config and custom server hook plugin
- pass HTTP Request to HookLifeCycle and send HTTP Response with the result
More http server like koa.js, nest.js could be implemented.