I have created my application using create-react-app. It is working fine with SSR. Everything is in place but I don't know how to deploy it? What I ideally want is : Generate a build folder and will upload in cdn. Want to serve my static assets from there. I want to create a distribution from my code and take that to another machine to deploy. I am not able to figure out how to do highlighted part. How can I create bundle for server? npm run build creates my bundle for client.
PS: I am using React libraries like React Router 4, Redux.. in my application. Hope this does not affect my answer. For SSR , I have used express.