react/fixtures/ssr
Sebastian Markbage 50d6f9656d Don't try to load asset manifest in dev mode
We're not going to use it so don't try to load it since it may not have
been built yet.
2017-04-27 21:57:01 -07:00
..
public SSR fixture (#9547) 2017-04-27 21:03:32 -07:00
server Don't try to load asset manifest in dev mode 2017-04-27 21:57:01 -07:00
src SSR fixture (#9547) 2017-04-27 21:03:32 -07:00
README.md SSR fixture (#9547) 2017-04-27 21:03:32 -07:00
package.json SSR fixture (#9547) 2017-04-27 21:03:32 -07:00
yarn.lock SSR fixture (#9547) 2017-04-27 21:03:32 -07:00

README.md

SSR Fixtures

A set of test cases for quickly identifying issues with server-side rendering.

Setup

To reference a local build of React, first run npm run build at the root of the React project. Then:

cd fixtures/ssr
npm install
npm start

The start command runs a webpack dev server and a server-side rendering server in development mode with hot reloading.

If you want to try the production mode instead run:

npm run start:prod

This will pre-build all static resources and then start a server-side rendering HTTP server that hosts the React app and service the static resources (without hot reloading).