gitlab-org--gitlab-foss/config/initializers/lookbook.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
381 B
Ruby
Raw Normal View History

# frozen_string_literal: true
if Rails.env.development?
# :nocov: Lookbook is only available in development
Lookbook::ApplicationController.class_eval do
content_security_policy false
end
Rails.application.configure do
config.lookbook.experimental_features = [:pages]
config.lookbook.page_paths = ["#{config.root}/spec/components/docs"]
end
# :nocov:
end