jkettmann/universal-react-relay-starter-kit

Server entrypoint

Closed this issue · 2 comments

ermik commented

how does main.js get created?

const serverRender = require('../../buildClientSSR/main.js').default

main.js is created by webpack. See this config file. This config is used during the build:client command

ermik commented

Yeah, I've spent some time making the similar scenario happen and ended up looping the server on Get request — there is a circular import somewhere when using webpack-made client.