diff --git a/config/routes.rb b/config/routes.rb index 22e0db432a..f51948f6aa 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -93,8 +93,10 @@ Openfoodnetwork::Application.routes.draw do get 'sitemap.xml', to: 'sitemap#index', defaults: { format: 'xml' } - # Mount DFC API endpoints - mount DfcProvider::Engine, at: '/' + unless Rails.env.production? + # Mount DFC API endpoints + mount DfcProvider::Engine, at: '/' + end # Mount Spree's routes mount Spree::Core::Engine, :at => '/'