bypass mini profiler for locales

bypass cdn for now
This commit is contained in:
Sam 2018-01-09 11:30:59 +11:00
parent b0a7ee1aec
commit ea63abf0f7
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
def self.url(bundle)
if Rails.env == "production"
"#{GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
"#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
else
"#{Discourse.base_uri}/extra-locales/#{bundle}"
end

View File

@ -25,6 +25,7 @@ if defined?(Rack::MiniProfiler)
skip = [
/^\/message-bus/,
/^\/extra-locales/,
/topics\/timings/,
/assets/,
/\/user_avatar\//,