Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add DISABLE_MINI_PROFILER development ENV variable

Penar Musaraj1acb2f752bd9
diff --git a/config/environments/development.rb b/config/environments/development.rb
index cd89923a263..83086237dbb 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -52,7 +52,10 @@ Discourse::Application.configure do
end
end
- config.load_mini_profiler = true
+ if !ENV["DISABLE_MINI_PROFILER"]
+ config.load_mini_profiler = true
+ end
+
if hosts = ENV['DISCOURSE_DEV_HOSTS']
config.hosts.concat(hosts.split(","))
end