Skip to content

Commit

Permalink
Mount /component-guide
Browse files Browse the repository at this point in the history
This should be enabled on every app which pulls in govuk_publishing_components.

Similarly, moves the (deprecated) govuk_admin_template `/style-guide` route out of the dev block so that it's available on production. It was decided in https://trello.com/c/ITcz5b1G/3417-enable-component-guide-on-non-dev-environments that there's no reason we need to lock this down to dev env only.
  • Loading branch information
ChrisBAshton authored Feb 21, 2025
1 parent c349ef0 commit 257a338
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
GovukHealthcheck::SidekiqRedis,
)

if Rails.env.development?
get "/styleguide" => "govuk_admin_template/style_guide#index"
end
mount GovukPublishingComponents::Engine, at: "/component-guide"
get "/styleguide" => "govuk_admin_template/style_guide#index"
end

0 comments on commit 257a338

Please sign in to comment.