chore: Improve widget loading performance (#1191)

* Frontend assets url

* Remove font files from widget

* Rename variable to ASSET_CDN_HOST
This commit is contained in:
Pranav Raj S
2020-09-03 13:17:45 +05:30
committed by GitHub
parent 17968e6d3f
commit dfb533db8d
4 changed files with 14 additions and 4 deletions

View File

@@ -31,8 +31,7 @@ Rails.application.configure do
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = 'http://assets.example.com'
config.action_controller.asset_host = ENV.fetch('ASSET_CDN_HOST') if ENV['ASSET_CDN_HOST'].present?
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX