Skip to content

Latest commit

 

History

History
executable file
·
39 lines (27 loc) · 729 Bytes

README.md

File metadata and controls

executable file
·
39 lines (27 loc) · 729 Bytes

React SSR with HMR

  • Code Spliting (Async Routes)
  • Prefetch data on server side
  • HMR with ssr

in work...

  • map files;
  • more frendly errors when render app on server side;
  • server config validation.

WARNIGN

Wait for react-route update bug with ssr. issue. Or manualy fix react-route-dom/Link.

Running and Building

# install dependencies
yarn install

# build all
yarn build

# build for client
yarn build:client

# build for server
yarn build:server

# Run ssr server in production mode
yarn start

# Start app in dev mode without ssr
yarn dev:client

# Start app in dev mode with ssr
yarn dev:server