spree/spree — pull request #5360 by jordan-brough (2014-09-12 18:36:53+00:00)
Title: Allow disabling Spree Frontend

Via a config preference.

We use our own frontend along with spree-api and this change will allow us to easily disable the frontend on our prod boxes yet keep it enabled for development so that we can test that our spree changes are meshing well with spree frontend code.

We can also try to make sure that we prevent requests at the nginx layer, but this seems like a nice way to make sure we really close off access to frontend so that we never end up with customers accidentally hitting frontend endpoints and getting really confused. Setting up a config will also allow other extensions (like spree_auth_devise) to read the same setting.