about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-01-29 01:06:39 +0100
committerGitHub <noreply@github.com>2018-01-29 01:06:39 +0100
commit97dcfb0f5025275d67459ab2c6d41f0affd8a493 (patch)
treeeec0fbc52a87c7c29c896d5cb9879a73b30696cc /lib
parent79bc3d58456a850a7f2d99a2c0e15ff1618c1a0e (diff)
ASSET_HOST is wrong env variable. Fix to CDN_HOST (#6372)
Diffstat (limited to 'lib')
-rw-r--r--lib/mastodon/premailer_webpack_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mastodon/premailer_webpack_strategy.rb b/lib/mastodon/premailer_webpack_strategy.rb
index 3382ef3b4..56ef09c1a 100644
--- a/lib/mastodon/premailer_webpack_strategy.rb
+++ b/lib/mastodon/premailer_webpack_strategy.rb
@@ -2,7 +2,7 @@
 
 module PremailerWebpackStrategy
   def load(url)
-    asset_host = ENV['ASSET_HOST'] || ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']
+    asset_host = ENV['CDN_HOST'] || ENV['WEB_DOMAIN'] || ENV['LOCAL_DOMAIN']
 
     if Webpacker.dev_server.running?
       asset_host = "#{Webpacker.dev_server.protocol}://#{Webpacker.dev_server.host_with_port}"