vise-ssr icon indicating copy to clipboard operation
vise-ssr copied to clipboard

Support more http servers

Open stauren opened this issue 3 years ago • 0 comments
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.

stauren avatar Oct 17 '22 03:10 stauren