Skip to content

Commit

Permalink
Add feature flag for GraphQL rendering
Browse files Browse the repository at this point in the history
This allows us to toggle the use of GraphQL by environment, in the same
way as Collections: alphagov/collections@bc1fedf.
  • Loading branch information
brucebolt committed Dec 16, 2024
1 parent 598f792 commit ca8be12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/lib/features.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class Features
def self.graphql_feature_enabled?
ENV["GRAPHQL_FEATURE_FLAG"]
end
end

0 comments on commit ca8be12

Please sign in to comment.