lvarayut / relay-fullstack

:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
https://lvarayut.github.io/relay-fullstack/
MIT License
986 stars 126 forks source link

Error when run npm run deploy with browserHistory #46

Closed Danjavia closed 7 years ago

Danjavia commented 7 years ago

When running

npm run deploy

the build dist run correctly but running on surge.sh or simple http server using python. the browserHistory doesn't show the routes.

On the other hand when run npm start the browserHistory runs perfectly.

Some idea?

import { browserHistory, applyRouterMiddleware, Router } from 'react-router';

<Router history={browserHistory} routes={Route} render={applyRouterMiddleware(useRelay)} environment={Relay.Store} />
lvarayut commented 7 years ago

Thanks for the question. This seems to be not related to Relay Fullstack. You might need to consult the react-router team. Please feel free to continue the discussion here if you had more question.