apollo-universal-starter-kit icon indicating copy to clipboard operation
apollo-universal-starter-kit copied to clipboard

Split server code into API server and HTTP server for server-side rendering

Open larixer opened this issue 6 years ago • 0 comments

GraphQL API server and HTTP server for SSR should be split into separate packages for clarity and greater flexibility. We should also remove imports from the server code to client code, for example importing all client modules is not efficient, since we essentially have two passes of compilation, one pass for packages/client and another pass for packages/server. Instead we should import client bundle from build folder during production, or load client bundle from webpack dev server during development if client bundle has been changed

larixer avatar Jul 19 '18 07:07 larixer