This is my favorite hierarchy for CRA with SSR
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
public
src
.babelrc
.eslintrc
.gitignore
README.md
package.json
start-server.js
yarn-error.log
yarn.lock

README.md

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!