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

Refresh in production mode causes error #6

Closed jkettmann closed 8 years ago

jkettmann commented 8 years ago

Refreshing the browser on any page except home causes an error "cannot get /...". This must be a configuration problem between react-routers browser history and the server.

In short: when you navigate to e.g. /login via the menu react-router is taking care of navigation without server interaction. On refresh though a request with url /login is send to server which is not available.

See this answer on stackoverflow

lvarayut commented 8 years ago

Thanks for reporting. I'll take a look at it soon. If you could make a PR, it'll be very welcomed.

lvarayut commented 8 years ago

Fixed by https://github.com/lvarayut/relay-fullstack/commit/e661e23d4f15d03bfad82bc669d097974844ec89.