/CRA_SSR

This is my favorite hierarchy for CRA with SSR

Primary LanguageJavaScript

Setup

yarn install or

npm install

in root directory please run:

node start-server.js or

pm2 start start-server.js

Please attention that there is no watch and auto building so you need run

npm run build

and put build js (and other assets files) into assets directory after each changes.

To check SSR visit: view-source:http://localhost:9000/

Happy Hacking!