I am building a basic React / Flux application and using the response-router component for routing, browser synchronization for live reloads when assembly changes, and scrolling for dependency injection.
The problem that occurs to me is that when a reboot or any reboot occurs along a path that is not "/" (for example, "/ profile", "/ gallery", etc.), I get a message about error message Can not GET / path (or any route, for that matter).
I suspect that this has something to do with the fact that the client runs a single-page application and all routing.
Here is my browser sync setting (very simple). I think that I may need to add some middleware, but I'm not sure if I really want to use middleware.
gulp.task('browser-sync', function() { browserSync({ server: { baseDir: './client' }, notify: false }); });
source share